diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-05-11 20:17:09 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-11 20:17:09 +0200 |
commit | 54602590d9e479e474db75cafa2e4b9f2799eafe (patch) | |
tree | 5a42b6c835e2a08adee9728d1d3a188ac5ba302e /libavcodec | |
parent | 69cfe63a43f43207f72fd677c47eafcf58fcfd13 (diff) | |
download | ffmpeg-54602590d9e479e474db75cafa2e4b9f2799eafe.tar.gz |
ffv1enc: Check the return value of ffv1_common_init()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/ffv1enc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c index 79e483d6dd..4535464670 100644 --- a/libavcodec/ffv1enc.c +++ b/libavcodec/ffv1enc.c @@ -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; |