Commit 17c65651 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mpeg12dec: Document Ticket3809 fix

Suggested-by: Reimar
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c103c485
...@@ -1884,6 +1884,10 @@ static int mpeg_decode_slice(MpegEncContext *s, int mb_y, ...@@ -1884,6 +1884,10 @@ static int mpeg_decode_slice(MpegEncContext *s, int mb_y,
} else } else
goto eos; 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) && if (s->mb_y >= ((s->height + 15) >> 4) &&
s->progressive_frame && s->progressive_frame &&
!s->progressive_sequence && !s->progressive_sequence &&
......
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