From 8811073d103ccc7c039093c68b108f126c6b8c34 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 12 Jul 2022 13:34:49 +0200 Subject: lavc/ffv1enc: pass through frame durations to encoded packets --- libavcodec/ffv1enc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c index 90593fbaf1..d02514041f 100644 --- a/libavcodec/ffv1enc.c +++ b/libavcodec/ffv1enc.c @@ -1234,6 +1234,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, pkt->size = buf_p - pkt->data; pkt->pts = pkt->dts = pict->pts; + pkt->duration = pict->duration; pkt->flags |= AV_PKT_FLAG_KEY * f->key_frame; *got_packet = 1; -- cgit v1.2.3