[FFmpeg-devel] [PATCH] CrystalHD: Fix usage of h264 parser.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Fri Apr 15 19:42:22 CEST 2011


On Thu, Apr 14, 2011 at 09:21:20PM -0700, Philip Langdale wrote:
> The implementation of parse2() seems to just
> pass it around on behalf of the caller without using it, except
> when initializing cur_offset. At this point, I don't know what
> I should pass for the pos value, but perhaps it doesn't matter.

It doesn't matter to you. The way I have seen it is to use it to
put the exact position when a generic index is auto-generated
e.g. with MPEG-ES input.
Seeking then will directly seek to a start of a frame so that
we will not read and try to decode a partial frame.
It's a bit questionable and also broken though (I recently
sent a patch to attempt to fix some issues).


More information about the ffmpeg-devel mailing list