OSDN Git Service

Merge commit '42c8f92e2fa390fa17b03d37b4323ec0d721d4cd'
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 17 Feb 2015 22:34:36 +0000 (23:34 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 17 Feb 2015 22:34:36 +0000 (23:34 +0100)
* commit '42c8f92e2fa390fa17b03d37b4323ec0d721d4cd':
  wmv2: Return meaningful error codes

Conflicts:
libavcodec/wmv2dec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
1  2 
libavcodec/wmv2dec.c

@@@ -450,11 -459,10 +450,12 @@@ int ff_wmv2_decode_mb(MpegEncContext *s
  static av_cold int wmv2_decode_init(AVCodecContext *avctx)
  {
      Wmv2Context *const w = avctx->priv_data;
+     int ret;
  
-     if (ff_msmpeg4_decode_init(avctx) < 0)
-         return -1;
 +    avctx->flags |= CODEC_FLAG_EMU_EDGE;
 +
+     if ((ret = ff_msmpeg4_decode_init(avctx)) < 0)
+         return ret;
  
      ff_wmv2_common_init(w);