Commit 924a2aa9 authored by bellard's avatar bellard

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1964 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0956c6da
......@@ -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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment