summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-07-12 14:45:59 +0200
committerAnton Khirnov <anton@khirnov.net>2022-08-23 16:50:33 +0200
commit64189c1c4ebec2362ac8d0b9bbcedd0230af928f (patch)
tree6922bc4374239064d6ea02447034ccae202ac3f5
parenta8d977eb9f77bfcac7e8ccdc8d4fa9106cbcc123 (diff)
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 7d372f3857..1d7520e669 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 (!(o_packet.granulepos & h->keyframe_mask))
pkt->flags |= AV_PKT_FLAG_KEY;