diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-07-12 14:45:59 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-11-28 10:34:10 +0100 |
commit | 96564bbaa0856be01ca0231df25d20d87b3946f9 (patch) | |
tree | 0a5a4ce52b7ad18f46ed2794476b1be8c8549334 | |
parent | 061d7aaa1eaee02833f408d7c9d8361cf1a96ad9 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |