1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

ffv1enc: Check the return value of ffv1_common_init()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-05-11 20:17:09 +02:00
parent 69cfe63a43
commit 54602590d9

View File

@ -641,7 +641,8 @@ static av_cold int encode_init(AVCodecContext *avctx)
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt);
int i, j, k, m, ret;
ffv1_common_init(avctx);
if ((ret = ffv1_common_init(avctx)) < ret)
return ret;
s->version = 0;