Message ID | 20210829170955.27105-2-onemda@gmail.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,1/2] avformat/gif: use last packet duration | expand |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
andriy/make_ppc | success | Make finished |
andriy/make_fate_ppc | success | Make fate finished |
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;
Signed-off-by: Paul B Mahol <onemda@gmail.com> --- libavcodec/gif.c | 1 + 1 file changed, 1 insertion(+)