[FFmpeg-devel] [PATCH] mpeg12: fixed parsing in some mpeg2 streams

Hendrik Leppkes h.leppkes at gmail.com
Sat Jan 21 19:57:11 CET 2012


Hi,

attached patch fixes a error in the mpeg1/2 parser that caused it to
improperly split up frames, or even swallow one at the end of the
stream.
Sadly, i couldn't find a way to reproduce this with one of the ff*
tools, because the error only seemed to happen when you try to parse
data that is already perfectly cut on frame boundaries (like from a
MKV, or running the parser twice).

Anyhow, after reading the code it did seem kind of obvious, the other
exit from the decoder also resets the value to 0, which makes sense -
also need to find a new frame start when the end was found.

- Hendrik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mpeg12-fixed-parsing-in-some-mpeg2-streams.patch
Type: application/octet-stream
Size: 779 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120121/c21df45c/attachment.obj>


More information about the ffmpeg-devel mailing list