diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-07-12 14:37:15 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-08-23 16:50:33 +0200 |
commit | 79f0c1c6a7b4416c06fca09adc4c89776e1850e1 (patch) | |
tree | 5e9211f5dce2a5e8f2c70ce790dc715d4b3c288e | |
parent | 8811073d103ccc7c039093c68b108f126c6b8c34 (diff) |
lavc/pngenc: pass through frame durations to encoded packets for APNG
-rw-r--r-- | libavcodec/pngenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c index ca9873f673..f7b57aea60 100644 --- a/libavcodec/pngenc.c +++ b/libavcodec/pngenc.c @@ -977,6 +977,7 @@ static int encode_apng(AVCodecContext *avctx, AVPacket *pkt, memcpy(pkt->data, s->last_frame_packet, s->last_frame_packet_size); pkt->pts = pkt->dts = s->last_frame->pts; + pkt->duration = s->last_frame->duration; } if (pict) { |