[FFmpeg-devel] [PATCH] Base parser frame_offset on correct packet pos.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Apr 10 00:47:49 CEST 2011


On Sat, Apr 09, 2011 at 11:47:19PM +0200, Reimar Döffinger wrote:
> The current code only works if the next buffer starts directly
> after the previous one in the file. For formats with some sort
> of framing that is not necessarily the case.
> Without this change, GENERIC_INDEX with needs_parsing and framing
> that causes the stream to be non-consecutive results in a broken
> index being generated.
> This is probably also a bug in the generic index code, it probably
> should ignore the parser output and instead always seek to some
> pkt->pos, or at the very least only use it when full parsing is requested.

Sorry, this breaks fate (iv8 at least) so I doubt it is correct.
Comments and tips still welcome though.


More information about the ffmpeg-devel mailing list