[FFmpeg-devel] [PATCH] rmdec.c: parse INDX chunk
Wed Mar 11 15:09:17 CET 2009
On Wed, Mar 11, 2009 at 09:01:45AM -0400, Ronald S. Bultje wrote:
> Hi Kostya,
> On Wed, Mar 11, 2009 at 8:54 AM, Kostya <kostya.shishkov at gmail.com> wrote:
> > Looks like they are employed when read_timestamp() is present.
> > I've implemented several demuxers with seek functions so I think I can help
> > you with this one (I'm interested in getting RM demuxer work too).
> > You tell me :)
> Go go go! read_pts() is already there, seems to work for some cases of seeking.
> Also, note how read_pts() returns AV_NOPTS_VALUE for old_format, would
> be nice to fix that somehow if possible, no idea how difficult that'd
> be, there's no timestamp information in old_format, it's just a
> lineair sequence of bytes in blocks of a particular length, basically
> like wav but without even the per-chunk header.
Two ways - implement real seek function or set pts for old codecs and
just seek to a theoretical position = data_start + ptr/N * full_frame_size
More information about the ffmpeg-devel