aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpeg12dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-07-14 23:58:08 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-07-15 00:09:15 +0200
commitbfd17046c138a9c68182f7b9c2cdd400675feb62 (patch)
tree3d9aaf2369947da151b50f7581370942929da68f /libavcodec/mpeg12dec.c
parent522256b374fe3b8edfea0040bdd5878ea8c8e37c (diff)
downloadffmpeg-bfd17046c138a9c68182f7b9c2cdd400675feb62.tar.gz
avcodec/mpeg12dec: Fix decoding of faulty interlaced mpeg2
Fixes Ticket4721 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/mpeg12dec.c')
-rw-r--r--libavcodec/mpeg12dec.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c
index b0e5ae9adc..7fad75386c 100644
--- a/libavcodec/mpeg12dec.c
+++ b/libavcodec/mpeg12dec.c
@@ -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 &&