lavc/libtheoraenc: stop setting dts unnecessarily

Theora is not marked as supporting reordering, so dts will be set from
pts by the generic code.
release/6.0
Anton Khirnov 3 years ago
parent 2bb20e98ba
commit 8a60a9c74c
  1. 2
      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);

Loading…
Cancel
Save