summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/apm.c1
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) /