[FFmpeg-devel] [PATCH 12/19] lavc/libtheoraenc: stop setting dts unnecessarily

Anton Khirnov anton at khirnov.net
Wed Jan 25 18:55:30 EET 2023


Theora is not marked as supporting reordering, so dts will be set from
pts by the generic code.
---
 libavcodec/libtheoraenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libtheoraenc.c b/libavcodec/libtheoraenc.c
index 73295e22b9..06eeaae006 100644
--- a/libavcodec/libtheoraenc.c
+++ b/libavcodec/libtheoraenc.c
@@ -346,7 +346,7 @@ static int encode_frame(AVCodecContext* avc_context, AVPacket *pkt,
 
     // HACK: assumes no encoder delay, this is true until libtheora becomes
     // multithreaded (which will be disabled unless explicitly requested)
-    pkt->pts = pkt->dts = frame->pts;
+    pkt->pts = frame->pts;
     pkt->duration = frame->duration;
 
     ret = ff_encode_reordered_opaque(avc_context, pkt, frame);
-- 
2.35.1



More information about the ffmpeg-devel mailing list