summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-09-16 17:54:54 +0200
committerPaul B Mahol <onemda@gmail.com>2022-09-16 18:04:20 +0200
commit8f115122733fd640b6f12290f2108939fda4c9cf (patch)
tree2d06d3280d4b7f1e6e173391f8259c38c5deb0bb
parent2c23cd0181ef18c8dd968218d45c15c1b035ba65 (diff)
avformat/ape: set packet duration
-rw-r--r--libavformat/ape.c1
1 files changed, 1 insertions, 0 deletions
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++;