Browse Source

corrupted field pictures segfault fix

Originally committed as revision 3040 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 22 years ago
parent
commit
25ef43bb28
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/mpeg12.c

+ 2
- 2
libavcodec/mpeg12.c View File

@@ -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;
}


Loading…
Cancel
Save