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

Joakim Plate elupus at ecce.se
Sun Jan 22 01:05:41 CET 2012


>>
>> 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.
>

Still are. When a seqendcode is discovered. All previous pictures must
be flushed
out, since there is no guarantee that there is anymore video data
after that (even
if audio keeps on going).

I'm not sure if the difference here is to make sure that happens or
not. As long
as all packets prior to that code exits parser without any new start
show up, it
should still be fine.


More information about the ffmpeg-devel mailing list