On Wed, Aug 24, 2022 at 6:15 PM Tomas Härdin 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){
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);
Paul B Mahol:
> diff --git a/libavformat/gif.c b/libavformat/gif.c
> index b52ff4dd39..afb5767541 100644
> --- a/libavformat/gif.c
> +++ b/libavformat/gif.c
> @@ -36,7 +36,6 @@ typedef struct GIFContext {
> int duration;
> int64_t last_pos;
> int have_end;
> -AVPacket *prev_pkt;
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;
>> i
On Tue, Aug 23, 2022 at 2:18 PM Andreas Rheinhardt <
andreas.rheinha...@outlook.com> wrote:
> Paul B Mahol:
> > Hi,
> >
> > patch attached.
> >
> > return ret;
> > }
> >
> > +pkt->duration = av_rescale_q(pict->duration, (AVRational){ 1, 100 },
> > +
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_nu
Hi,
patch attached.
From f126c6ef9e5fa8b51272508af6603f05c26a3f26 Mon Sep 17 00:00:00 2001
From: Paul B Mahol
Date: Tue, 23 Aug 2022 11:51:24 +0200
Subject: [PATCH] avcodec/gif: fix duration of last packet/frame
Fixes #6294
Signed-off-by: Paul B Mahol
---
libavcodec/gif.c | 2 ++
libavforma