aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-11 20:17:09 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-05-11 20:17:09 +0200
commit54602590d9e479e474db75cafa2e4b9f2799eafe (patch)
tree5a42b6c835e2a08adee9728d1d3a188ac5ba302e /libavcodec
parent69cfe63a43f43207f72fd677c47eafcf58fcfd13 (diff)
downloadffmpeg-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.c3
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;