[FFmpeg-cvslog] avformat/ape: set packet duration

Paul B Mahol git at videolan.org
Fri Sep 16 19:01:44 EEST 2022


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Sep 16 17:54:54 2022 +0200| [8f115122733fd640b6f12290f2108939fda4c9cf] | committer: Paul B Mahol

avformat/ape: set packet duration

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

 libavformat/ape.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/ape.c b/libavformat/ape.c
index bf1254e7bd..e694df7302 100644
--- a/libavformat/ape.c
+++ b/libavformat/ape.c
@@ -411,6 +411,7 @@ static int ape_read_packet(AVFormatContext * s, AVPacket * pkt)
     /* note: we need to modify the packet size here to handle the last
        packet */
     pkt->size = ret + extra_size;
+    pkt->duration = nblocks;
 
     ape->currentframe++;
 



More information about the ffmpeg-cvslog mailing list