diff options
author | Paul B Mahol <onemda@gmail.com> | 2015-10-26 01:07:21 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2015-10-26 12:08:01 +0300 |
commit | ff1e44b01ef7a5915bb1c1733f47eb5c3c88738b (patch) | |
tree | 2ecf7b8e09acef208506fcf1bcbcff89927a890c | |
parent | 035ae3c0096f6c0a3f199d331ed4094ff5beafd1 (diff) |
avformat/thp: set duration for audio stream too
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavformat/thp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/thp.c b/libavformat/thp.c index 727fb5095c..5a748b0477 100644 --- a/libavformat/thp.c +++ b/libavformat/thp.c @@ -135,6 +135,7 @@ static int thp_read_header(AVFormatContext *s) st->codec->codec_tag = 0; /* no fourcc */ st->codec->channels = avio_rb32(pb); /* numChannels. */ st->codec->sample_rate = avio_rb32(pb); /* Frequency. */ + st->duration = avio_rb32(pb); avpriv_set_pts_info(st, 64, 1, st->codec->sample_rate); |