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

Paul B Mahol onemda at gmail.com
Wed Aug 24 19:23:41 EEST 2022


On Wed, Aug 24, 2022 at 6:15 PM Tomas Härdin <tjoppen at acc.umu.se> wrote:

> 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
>

This patch need frame duration handling in libavfilter that is currently
WIP.


>
> /Tomas
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-devel mailing list