mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-09-19 21:06:42 +00:00
lavc/pngenc: stop setting dts unnecessarily for APNG
APNG is not marked as supporting reordering, so dts will be set from pts by the generic code.
This commit is contained in:
parent
bbbafab0ee
commit
b7f0c8889e
@ -963,7 +963,7 @@ static int encode_apng(AVCodecContext *avctx, AVPacket *pkt,
|
||||
return ret;
|
||||
|
||||
memcpy(pkt->data, s->last_frame_packet, s->last_frame_packet_size);
|
||||
pkt->pts = pkt->dts = s->last_frame->pts;
|
||||
pkt->pts = s->last_frame->pts;
|
||||
pkt->duration = s->last_frame->duration;
|
||||
|
||||
ret = ff_encode_reordered_opaque(avctx, pkt, s->last_frame);
|
||||
|
Loading…
Reference in New Issue
Block a user