提交 855127bc 编写于 作者: F Fabrice Bellard

fixed segfault if sequence header has not been found before slice decoding

Originally committed as revision 1964 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 63efe9a7
......@@ -1990,6 +1990,9 @@ static int slice_end(AVCodecContext *avctx, AVFrame *pict)
Mpeg1Context *s1 = avctx->priv_data;
MpegEncContext *s = &s1->mpeg_enc_ctx;
if (!s1->mpeg_enc_ctx_allocated)
return 0;
/* end of slice reached */
if (/*s->mb_y<<field_pic == s->mb_height &&*/ !s->first_field) {
/* end of image */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册