lavc/libwebpenc_animencoder: stop setting dts unnecessarily

WebP does not have reordering, so dts=pts is set by the generic code.
release/6.0
Anton Khirnov 2 years ago
parent fbdba9a1a6
commit 476ec77870
  1. 2
      libavcodec/libwebpenc_animencoder.c

@ -77,7 +77,7 @@ static int libwebp_anim_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
memcpy(pkt->data, assembled_data.bytes, assembled_data.size);
WebPDataClear(&assembled_data);
s->done = 1;
pkt->pts = pkt->dts = s->first_frame_pts;
pkt->pts = s->first_frame_pts;
*got_packet = 1;
return 0;
} else {

Loading…
Cancel
Save