diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-07-12 14:45:59 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-08-23 16:50:33 +0200 |
commit | 5bac88bea210ab6b325413bf4708a81ab73777bb (patch) | |
tree | 66b24942fe4faef36a52d51431322539ef75e7d7 | |
parent | 79f0c1c6a7b4416c06fca09adc4c89776e1850e1 (diff) |
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.
-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 f7b57aea60..6909071a3a 100644 --- a/libavcodec/pngenc.c +++ b/libavcodec/pngenc.c @@ -976,7 +976,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; } |