[FFmpeg-devel] [PATCH 15/19] lavc/libwebpenc_animencoder: stop setting dts unnecessarily
Anton Khirnov
anton at khirnov.net
Wed Jan 25 18:55:33 EET 2023
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 {
--
2.35.1
More information about the ffmpeg-devel
mailing list