diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-17 01:38:53 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-17 01:43:30 +0200 |
commit | c8d89be477acba302f6e4a5ff6b2ff8600b51cd5 (patch) | |
tree | 36f682a17e7fa4fba2bc71bda771eb29b09cf8c1 /libavcodec/ffv1enc.c | |
parent | eeb3fb9e62d4647e1fee5d262be63e793117430d (diff) | |
download | ffmpeg-c8d89be477acba302f6e4a5ff6b2ff8600b51cd5.tar.gz |
ffv1enc: propagate error code from write_extradata()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ffv1enc.c')
-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 bb7e087198..82ed577d27 100644 --- a/libavcodec/ffv1enc.c +++ b/libavcodec/ffv1enc.c @@ -904,7 +904,8 @@ static av_cold int encode_init(AVCodecContext *avctx) avctx->slices); return AVERROR(ENOSYS); slices_ok: - write_extradata(s); + if ((ret = write_extradata(s)) < 0) + return ret; } if ((ret = ffv1_init_slice_contexts(s)) < 0) |