Commit 54602590 authored by Michael Niedermayer's avatar Michael Niedermayer

ffv1enc: Check the return value of ffv1_common_init()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 69cfe63a
...@@ -641,7 +641,8 @@ static av_cold int encode_init(AVCodecContext *avctx) ...@@ -641,7 +641,8 @@ static av_cold int encode_init(AVCodecContext *avctx)
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt); const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt);
int i, j, k, m, ret; int i, j, k, m, ret;
ffv1_common_init(avctx); if ((ret = ffv1_common_init(avctx)) < ret)
return ret;
s->version = 0; s->version = 0;
......
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