aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-07-12 14:45:59 +0200
committerAnton Khirnov <anton@khirnov.net>2023-01-29 09:23:17 +0100
commit8a60a9c74c7bfc2772a67d13401a395fe01d5677 (patch)
treea87dd18c8a30c1974d7bdacda45fdbe59e6d062c
parent2bb20e98ba74ca629fd63d7b1fc3154ea1f3caa5 (diff)
downloadffmpeg-8a60a9c74c7bfc2772a67d13401a395fe01d5677.tar.gz
lavc/libtheoraenc: stop setting dts unnecessarily
Theora is not marked as supporting reordering, so dts will be set from pts by the generic code.
-rw-r--r--libavcodec/libtheoraenc.c2
1 files changed, 1 insertions, 1 deletions
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);