Commit ff1e44b0 authored by Paul B Mahol's avatar Paul B Mahol

avformat/thp: set duration for audio stream too

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 035ae3c0
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment