[FFmpeg-devel] seeking wishlist [was: rmdec.c: parse INDX chunk]

Kostya kostya.shishkov
Wed Mar 11 20:15:21 CET 2009


On Wed, Mar 11, 2009 at 07:55:57PM +0100, Michael Niedermayer wrote:
> On Wed, Mar 11, 2009 at 10:18:54AM -0400, Ronald S. Bultje wrote:
> > Hi,
> > 
> > On Wed, Mar 11, 2009 at 9:01 AM, Ronald S. Bultje <rsbultje at gmail.com> wrote:
> > > 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.
> > 
> > I'm going through particulars now. Ok, so av_seek_frame_binary() etc.
> > is beautiful. But it lacks one small thing: updating the demuxer
> > afterwards. Is it ok if my rm_seek() function is implemented as this:
> > 
> > int rm_seek() {
> >   // FIXME maybe some special handling for old_format/multirate
> >   if (av_seek_frame_binary()<0) return -1;
> >   rm->audio_pkt_cnt = 0;
> >   rm->remaining_len = 0;
> >   return 0;
> > }
> > 
> > ? That seems like it would do the whole thing...
> 
> read_seek2() is the new API, the old is deprecated and will be droped
 
Can you make an official announcement when one can use/convert to it
(/me has several demuxers to maintain)?
 
> [...]
> -- 
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB




More information about the ffmpeg-devel mailing list