diff mbox series

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

Message ID 20221127170351.11477-25-anton@khirnov.net
State New
Headers show
Series [FFmpeg-devel,01/30] lavc/libx264: factor out setting up the input frame | expand


Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov Nov. 27, 2022, 5:03 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 a54cfcdd69..009874cef5 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;
         if (s->last_frame->opaque_ref &&