diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c index 9cd0cff344..75d2be670a 100644 --- a/libavcodec/ffv1dec.c +++ b/libavcodec/ffv1dec.c @@ -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;