[FFmpeg-devel] [PATCH 27/30] lavc/libtheoraenc: stop setting dts unnecessarily

Anton Khirnov anton at khirnov.net
Sun Nov 27 19:03:48 EET 2022


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 9b8404ce31..e36a948511 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;
 
     if (avc_context->flags & AV_CODEC_FLAG_COPY_OPAQUE) {
-- 
2.35.1



More information about the ffmpeg-devel mailing list