mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/mpeg12dec: Document Ticket3809 fix
Suggested-by: Reimar Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
c103c48525
commit
17c6565186
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user