[FFmpeg-cvslog] ffv1enc: propagate error code from write_extradata()
Michael Niedermayer
git at videolan.org
Sat Aug 17 01:49:32 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Aug 17 01:38:53 2013 +0200| [c8d89be477acba302f6e4a5ff6b2ff8600b51cd5] | committer: Michael Niedermayer
ffv1enc: propagate error code from write_extradata()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c8d89be477acba302f6e4a5ff6b2ff8600b51cd5
---
libavcodec/ffv1enc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c
index bb7e087..82ed577 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)
More information about the ffmpeg-cvslog
mailing list