avcodec/mpeg12dec: Fix decoding of faulty interlaced mpeg2

Fixes Ticket4721

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2015-07-14 23:58:08 +02:00
parent 522256b374
commit bfd17046c1
1 changed files with 0 additions and 1 deletions

View 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 &&