diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-07-12 14:45:59 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-01-29 09:23:17 +0100 |
commit | b7f0c8889e022c6fbfd9703664f8af05d9a48258 (patch) | |
tree | e06e0ae4892dfcf8da4ae5cadf570900401ddd6f /libavcodec/pngenc.c | |
parent | bbbafab0ee8b5ac15150d3b6c8129d7dbcbe6603 (diff) | |
download | ffmpeg-b7f0c8889e022c6fbfd9703664f8af05d9a48258.tar.gz |
lavc/pngenc: stop setting dts unnecessarily for APNG
APNG is not marked as supporting reordering, so dts will be set from pts
by the generic code.
Diffstat (limited to 'libavcodec/pngenc.c')
-rw-r--r-- | libavcodec/pngenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c index 535a46b507..2393161c3b 100644 --- a/libavcodec/pngenc.c +++ b/libavcodec/pngenc.c @@ -963,7 +963,7 @@ static int encode_apng(AVCodecContext *avctx, AVPacket *pkt, return ret; memcpy(pkt->data, s->last_frame_packet, s->last_frame_packet_size); - pkt->pts = pkt->dts = s->last_frame->pts; + pkt->pts = s->last_frame->pts; pkt->duration = s->last_frame->duration; ret = ff_encode_reordered_opaque(avctx, pkt, s->last_frame); |