diff mbox series

[FFmpeg-devel,15/19] lavc/libwebpenc_animencoder: stop setting dts unnecessarily

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

Commit Message

Anton Khirnov Jan. 25, 2023, 4:55 p.m. UTC
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 mbox series

Patch

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 {