summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-01-31 10:59:56 +0100
committerAnton Khirnov <anton@khirnov.net>2024-02-07 11:46:55 +0100
commita1c375dc066cc396e000d1d9eba2944042be1bdc (patch)
treebfb4bcaf0b0958d7a75535e15fc2dcd240dd7762
parent4ea4768495b6c72e9c21b5ef8d154f8ccf2eacb5 (diff)
lavf/adx: set ts_flags
-rw-r--r--libavformat/adxdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/adxdec.c b/libavformat/adxdec.c
index b6bd3303a7..4765cd166f 100644
--- a/libavformat/adxdec.c
+++ b/libavformat/adxdec.c
@@ -125,6 +125,8 @@ static int adx_read_header(AVFormatContext *s)
avpriv_set_pts_info(st, 64, BLOCK_SAMPLES, par->sample_rate);
+ st->ts_flags = AVFORMAT_TS_FLAG_PTS | AVFORMAT_TS_FLAG_DURATION;
+
return 0;
}