summaryrefslogtreecommitdiff
path: root/libavformat/thp.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2015-11-05 12:04:53 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-11-12 04:39:14 +0100
commit5f2c8315b3c1b28da0386fddb118ad6a0ed77a0c (patch)
treea023dd51e06405a3f60a76ac94fc887ef7ef58ed /libavformat/thp.c
parent1d62ee38894afb696674db78cee8f8d89204a8fe (diff)
downloadffmpeg-5f2c8315b3c1b28da0386fddb118ad6a0ed77a0c.tar.gz
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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/thp.c b/libavformat/thp.c
index 18d4afea24..27d7ab433b 100644
--- a/libavformat/thp.c
+++ b/libavformat/thp.c
@@ -126,6 +126,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);