ffmpeg | branch: master | Anton Khirnov <[email protected]> | Tue Jul 12 
14:45:59 2022 +0200| [b7f0c8889e022c6fbfd9703664f8af05d9a48258] | committer: 
Anton Khirnov

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.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b7f0c8889e022c6fbfd9703664f8af05d9a48258
---

 libavcodec/pngenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c
index 535a46b507..2393161c3b 100644
--- a/libavcodec/pngenc.c
+++ b/libavcodec/pngenc.c
@@ -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);

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to