summaryrefslogtreecommitdiff
path: root/libavcodec/mpeg12dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-02 22:57:34 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-08-02 23:10:23 +0200
commit17c656518623e54ba5818e7bee965646421aeae0 (patch)
tree40f284bcf30c861044f6521008313c2688cfd662 /libavcodec/mpeg12dec.c
parentc103c48525280d9f449cae0c4fc13b2ef2366eaf (diff)
avcodec/mpeg12dec: Document Ticket3809 fix
Suggested-by: Reimar Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpeg12dec.c')
-rw-r--r--libavcodec/mpeg12dec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c
index 27bb6e0809..6c6b34aece 100644
--- a/libavcodec/mpeg12dec.c
+++ b/libavcodec/mpeg12dec.c
@@ -1884,6 +1884,10 @@ static int mpeg_decode_slice(MpegEncContext *s, int mb_y,
} else
goto eos;
}
+ // There are some files out there which are missing the last slice
+ // in cases where the slice is completely outside the vissible
+ // 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 &&