summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-02-07 11:38:13 +0100
committerAnton Khirnov <anton@khirnov.net>2024-02-07 11:46:55 +0100
commit8ce9fc31d0a43ea6816c746d2f736f71e4d8fe10 (patch)
tree347cad289092d870c4500dfbbe0d384d7fc749ac
parent3c202f69cd8fed21878d469d67f51270efb05fae (diff)
lavf/ape: set ts_flags
-rw-r--r--libavformat/ape.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/ape.c b/libavformat/ape.c
index 92e9ac7cb1..eb7b39960e 100644
--- a/libavformat/ape.c
+++ b/libavformat/ape.c
@@ -343,6 +343,8 @@ static int ape_read_header(AVFormatContext * s)
st->duration = total_blocks;
avpriv_set_pts_info(st, 64, 1, ape->samplerate);
+ st->ts_flags = AVFORMAT_TS_FLAG_PTS | AVFORMAT_TS_FLAG_DURATION;
+
if ((ret = ff_alloc_extradata(st->codecpar, APE_EXTRADATA_SIZE)) < 0)
return ret;
AV_WL16(st->codecpar->extradata + 0, ape->fileversion);