diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-18 21:42:31 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-18 21:42:31 +0200 |
commit | 5537c92f84db5f10a853c0b974bc5223252114f4 (patch) | |
tree | 20c82f67e6f1d937c5be0a0bb7871981377954a5 /libavcodec/mpegvideo_enc.c | |
parent | 2472f3facbb43e224d70c75399a7d5208ddfe184 (diff) | |
download | ffmpeg-streaming-5537c92f84db5f10a853c0b974bc5223252114f4.zip ffmpeg-streaming-5537c92f84db5f10a853c0b974bc5223252114f4.tar.gz |
mpegvideoenc: check return value of ff_MPV_frame_start()
Fixes CID703622
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegvideo_enc.c')
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |