Commit d56f546b authored by michael's avatar michael

corrupted field pictures segfault fix


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3040 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 149f02b0
......@@ -2250,8 +2250,8 @@ static int mpeg_decode_slice(Mpeg1Context *s1, int mb_y,
s->resync_mb_x=
s->resync_mb_y= -1;
if (mb_y >= s->mb_height){
av_log(s->avctx, AV_LOG_ERROR, "slice below image (%d >= %d)\n", s->mb_y, s->mb_height);
if (mb_y<<field_pic >= s->mb_height){
av_log(s->avctx, AV_LOG_ERROR, "slice below image (%d >= %d)\n", mb_y, s->mb_height);
return -1;
}
......
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