[FFmpeg-devel] [PATCH] avcodec/gif: fix duration of last packet/frame

Tomas Härdin tjoppen at acc.umu.se
Wed Aug 24 19:15:35 EEST 2022


tis 2022-08-23 klockan 14:18 +0200 skrev Andreas Rheinhardt:
> Paul B Mahol:
> > Hi,
> > 
> > patch attached.
> > 
> >              return ret;
> >      }
> >  
> > +    pkt->duration = av_rescale_q(pict->duration, (AVRational){ 1,
> > 100 },
> > +                                 avctx->time_base);
> >      pkt->size   = outbuf_ptr - pkt->data;
> >      if (s->image || !avctx->frame_number)
> >          pkt->flags |= AV_PKT_FLAG_KEY;
> 
> Where does the magic 1/100 timebase come from?

>From the spec

/Tomas



More information about the ffmpeg-devel mailing list