ffv1dec: propagate return code from ffv1_common_init()
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 7 Nov 2012 12:27:01 +0000 (13:27 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 7 Nov 2012 12:27:01 +0000 (13:27 +0100)
Fixes Ticket1824
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ffv1dec.c

index 9cd0cff..75d2be6 100644 (file)
@@ -717,7 +717,8 @@ static av_cold int decode_init(AVCodecContext *avctx)
     FFV1Context *f = avctx->priv_data;
     int ret;
 
-    ffv1_common_init(avctx);
+    if ((ret = ffv1_common_init(avctx)) < 0)
+        return ret;
 
     if (avctx->extradata && (ret = read_extra_header(f)) < 0)
         return ret;