Commit fdfbb793 authored by Michael Niedermayer's avatar Michael Niedermayer

ffv1dec: propagate return code from ffv1_common_init()

Fixes Ticket1824
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent dd11615b
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment