[FFmpeg-cvslog] mpegvideoenc: check return value of ff_MPV_frame_start()
Michael Niedermayer
git at videolan.org
Thu Oct 18 22:10:59 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Oct 18 21:42:31 2012 +0200| [5537c92f84db5f10a853c0b974bc5223252114f4] | committer: Michael Niedermayer
mpegvideoenc: check return value of ff_MPV_frame_start()
Fixes CID703622
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5537c92f84db5f10a853c0b974bc5223252114f4
---
libavcodec/mpegvideo_enc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 108db50..32e1772 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -1501,7 +1501,8 @@ int ff_MPV_encode_picture(AVCodecContext *avctx, AVPacket *pkt,
s->pict_type = s->new_picture.f.pict_type;
//emms_c();
- ff_MPV_frame_start(s, avctx);
+ if (ff_MPV_frame_start(s, avctx) < 0)
+ return -1;
vbv_retry:
if (encode_picture(s, s->picture_number) < 0)
return -1;
More information about the ffmpeg-cvslog
mailing list