Commit bfd17046 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mpeg12dec: Fix decoding of faulty interlaced mpeg2

Fixes Ticket4721
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 522256b3
......@@ -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 &&
......
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