Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2015-10-26 01:07:21 +0300
committerPaul B Mahol <onemda@gmail.com>2015-10-26 12:08:01 +0300
commitff1e44b01ef7a5915bb1c1733f47eb5c3c88738b (patch)
tree2ecf7b8e09acef208506fcf1bcbcff89927a890c /libavformat/thp.c
parent035ae3c0096f6c0a3f199d331ed4094ff5beafd1 (diff)
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.c1
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);