lavc/libwebpenc_animencoder: stop setting dts unnecessarily

WebP does not have reordering, so dts=pts is set by the generic code.
This commit is contained in:
Anton Khirnov 2023-01-10 13:31:22 +01:00
parent fbdba9a1a6
commit 476ec77870
1 changed files with 1 additions and 1 deletions

View File

@ -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 {