diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-07-12 13:34:49 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-08-23 16:50:33 +0200 |
commit | 8811073d103ccc7c039093c68b108f126c6b8c34 (patch) | |
tree | a589b2b84c1a873807b514ade5003a8e65431aa0 | |
parent | 2299a8e77d894aeedf01c159f4f6c2b037d26d34 (diff) |
lavc/ffv1enc: pass through frame durations to encoded packets
-rw-r--r-- | libavcodec/ffv1enc.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |