From 476ec7787030b58a5ddb4226d5d5bdba1801c207 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 10 Jan 2023 13:31:22 +0100 Subject: [PATCH] lavc/libwebpenc_animencoder: stop setting dts unnecessarily WebP does not have reordering, so dts=pts is set by the generic code. --- libavcodec/libwebpenc_animencoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libwebpenc_animencoder.c b/libavcodec/libwebpenc_animencoder.c index 0f2c190c8c..977f880d6c 100644 --- a/libavcodec/libwebpenc_animencoder.c +++ b/libavcodec/libwebpenc_animencoder.c @@ -77,7 +77,7 @@ static int libwebp_anim_encode_frame(AVCodecContext *avctx, AVPacket *pkt, memcpy(pkt->data, assembled_data.bytes, assembled_data.size); WebPDataClear(&assembled_data); s->done = 1; - pkt->pts = pkt->dts = s->first_frame_pts; + pkt->pts = s->first_frame_pts; *got_packet = 1; return 0; } else {