diff options
author | Paul B Mahol <onemda@gmail.com> | 2015-10-25 23:07:21 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2015-10-26 10:08:01 +0100 |
commit | ff1e44b01ef7a5915bb1c1733f47eb5c3c88738b (patch) | |
tree | 2ecf7b8e09acef208506fcf1bcbcff89927a890c /libavformat/thp.c | |
parent | 035ae3c0096f6c0a3f199d331ed4094ff5beafd1 (diff) | |
download | ffmpeg-ff1e44b01ef7a5915bb1c1733f47eb5c3c88738b.tar.gz |
avformat/thp: set duration for audio stream too
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/thp.c')
-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); |