1
0
Fork 0

lavc/libtheoraenc: stop setting dts unnecessarily

Theora is not marked as supporting reordering, so dts will be set from
pts by the generic code.
This commit is contained in:
Anton Khirnov 2022-07-12 14:45:59 +02:00
parent 2bb20e98ba
commit 8a60a9c74c
1 changed files with 1 additions and 1 deletions

View File

@ -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);