Commit c8d89be4 authored by Michael Niedermayer's avatar Michael Niedermayer

ffv1enc: propagate error code from write_extradata()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent eeb3fb9e
...@@ -904,7 +904,8 @@ static av_cold int encode_init(AVCodecContext *avctx) ...@@ -904,7 +904,8 @@ static av_cold int encode_init(AVCodecContext *avctx)
avctx->slices); avctx->slices);
return AVERROR(ENOSYS); return AVERROR(ENOSYS);
slices_ok: slices_ok:
write_extradata(s); if ((ret = write_extradata(s)) < 0)
return ret;
} }
if ((ret = ffv1_init_slice_contexts(s)) < 0) if ((ret = ffv1_init_slice_contexts(s)) < 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