diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-02-07 11:38:13 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-02-07 11:46:55 +0100 |
commit | bed1551f0ce546dcb53d5f657d4f448d71add6b0 (patch) | |
tree | e252143a82ed0db8a039bb0014eb3cd7a44aec3b | |
parent | 8ce9fc31d0a43ea6816c746d2f736f71e4d8fe10 (diff) |
lavf/apm: set ts_flags
-rw-r--r-- | libavformat/apm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/apm.c b/libavformat/apm.c index ccb8e22437..42b0c23a8c 100644 --- a/libavformat/apm.c +++ b/libavformat/apm.c @@ -174,6 +174,7 @@ static int apm_read_header(AVFormatContext *s) memcpy(par->extradata, buf + 20, APM_EXTRADATA_SIZE); avpriv_set_pts_info(st, 64, 1, par->sample_rate); + st->ts_flags = AVFORMAT_TS_FLAG_DURATION; st->start_time = 0; st->duration = extradata.data_size * (8 / par->bits_per_coded_sample) / |