[FFmpeg-cvslog] lavc/libwebpenc_animencoder: stop setting dts unnecessarily

Anton Khirnov git at videolan.org
Sun Jan 29 10:40:31 EET 2023


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Jan 10 13:31:22 2023 +0100| [476ec7787030b58a5ddb4226d5d5bdba1801c207] | committer: Anton Khirnov

lavc/libwebpenc_animencoder: stop setting dts unnecessarily

WebP does not have reordering, so dts=pts is set by the generic code.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=476ec7787030b58a5ddb4226d5d5bdba1801c207
---

 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 {



More information about the ffmpeg-cvslog mailing list