提交 5537c92f 编写于 作者: M Michael Niedermayer

mpegvideoenc: check return value of ff_MPV_frame_start()

Fixes CID703622
Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 2472f3fa
...@@ -1501,7 +1501,8 @@ int ff_MPV_encode_picture(AVCodecContext *avctx, AVPacket *pkt, ...@@ -1501,7 +1501,8 @@ int ff_MPV_encode_picture(AVCodecContext *avctx, AVPacket *pkt,
s->pict_type = s->new_picture.f.pict_type; s->pict_type = s->new_picture.f.pict_type;
//emms_c(); //emms_c();
ff_MPV_frame_start(s, avctx); if (ff_MPV_frame_start(s, avctx) < 0)
return -1;
vbv_retry: vbv_retry:
if (encode_picture(s, s->picture_number) < 0) if (encode_picture(s, s->picture_number) < 0)
return -1; return -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册