[FFmpeg-devel] [PATCH] DeluxePaint Animation playback system

Reimar Döffinger Reimar.Doeffinger
Tue Sep 22 14:42:32 CEST 2009


On Tue, Sep 22, 2009 at 10:22:06PM +1000, Peter Ross wrote:
> On Wed, Aug 26, 2009 at 02:15:06PM +0200, Reimar D?ffinger wrote:
> > On Wed, Aug 26, 2009 at 08:45:33PM +1000, Peter Ross wrote:
> > 
> > > +    pkt->pts = anm->pts;
> > > +    if (pkt->pts == 0)
> > > +        pkt->flags |= PKT_FLAG_KEY;
> > > +
> > > +    anm->pts++;
> > > +    anm->record++;
> > 
> > That will probably mean your code can't work with AVFMT_GENERIC_INDEX.
> > I really think that seeking should be working.
> 
> Can you elaborate on this problem Reminar? I don't see a problem with
> incrementing pts...

Besides that the pts part is probably just completely useless code, it means you
are keeping position-dependent state. Which means that you need a
special seek function that sets this internal state to the correct value
for the position the seek went to (obviously the generic seek function
can not know about this demuxer-specific data).



More information about the ffmpeg-devel mailing list