Signed-off-by: Paul B Mahol <one...@gmail.com>
---
 libavcodec/gif.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/gif.c b/libavcodec/gif.c
index 5e7cc47206..6f389c8ac3 100644
--- a/libavcodec/gif.c
+++ b/libavcodec/gif.c
@@ -514,6 +514,7 @@ static int gif_encode_frame(AVCodecContext *avctx, AVPacket 
*pkt,
     }
 
     pkt->size   = outbuf_ptr - pkt->data;
+    pkt->duration = av_rescale_q(pict->pkt_duration, av_make_q(1, 100), 
avctx->time_base);
     if (s->image || !avctx->frame_number)
         pkt->flags |= AV_PKT_FLAG_KEY;
     *got_packet = 1;
-- 
2.17.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to