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

Hendrik Leppkes h.leppkes at gmail.com
Sun Jan 22 10:06:26 CET 2012


Hi,

On Sun, Jan 22, 2012 at 7:43 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
>
> i suspect the patch is correct but there are more problems in there
> i dont want to try to fix it without having some testcase ...
> does anyone have a test file with a still picture ?
>


The problem i tried to fix occured with this file, which is part of a Blu-ray.
It contains 2 frames, with a total duration of ~3 seconds.

Without the patch, the parser would swallow the second frame and never
return it.
Like explained initially, this only happens when the parser is asked
to parse a bitstream which is already cut at frame boundaries, which
doesn't happen inside ffmpeg usually (but happens with the BD support
i'm trying to work with)

http://files.1f0.de/samples/pearl_harbouer_00025.m2ts

Since this code path seems to be used, i guess it is similar to the
still frames on DVDs.

- Hendrik


More information about the ffmpeg-devel mailing list