diff mbox series

[FFmpeg-devel,10/19] lavc/pngenc: stop setting dts unnecessarily for APNG

Message ID 20230125165537.5371-10-anton@khirnov.net
State Accepted
Commit b7f0c8889e022c6fbfd9703664f8af05d9a48258
Headers show
Series [FFmpeg-devel,01/19] lavc/avcodec: improve enc/dec API doxy | expand


Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov Jan. 25, 2023, 4:55 p.m. UTC
APNG is not marked as supporting reordering, so dts will be set from pts
by the generic code.
 libavcodec/pngenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series


diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c
index 3738df297e..4392220fbb 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;
         ret = ff_encode_reordered_opaque(avctx, pkt, s->last_frame);