avcodec/mpeg12dec: Fix decoding of faulty interlaced mpeg2
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 14 Jul 2015 21:58:08 +0000 (23:58 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 14 Jul 2015 22:09:15 +0000 (00:09 +0200)
Fixes Ticket4721

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpeg12dec.c

index b0e5ae9..7fad753 100644 (file)
@@ -1938,7 +1938,6 @@ static int mpeg_decode_slice(MpegEncContext *s, int mb_y,
             // area, we detect this here instead of running into the end expecting
             // more data
             if (s->mb_y >= ((s->height + 15) >> 4) &&
-                s->progressive_frame &&
                 !s->progressive_sequence &&
                 get_bits_left(&s->gb) <= 8 &&
                 get_bits_left(&s->gb) >= 0 &&