[FFmpeg-cvslog] lavc/libtheoraenc: stop setting dts unnecessarily
Anton Khirnov
git at videolan.org
Sun Jan 29 10:40:23 EET 2023
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Jul 12 14:45:59 2022 +0200| [8a60a9c74c7bfc2772a67d13401a395fe01d5677] | committer: Anton Khirnov
lavc/libtheoraenc: stop setting dts unnecessarily
Theora is not marked as supporting reordering, so dts will be set from
pts by the generic code.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8a60a9c74c7bfc2772a67d13401a395fe01d5677
---
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);
More information about the ffmpeg-cvslog
mailing list