summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}