thp: set duration for audio stream too

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2015-11-05 12:04:53 +01:00 committed by Vittorio Giovara
parent 1d62ee3889
commit 5f2c8315b3
1 changed files with 1 additions and 0 deletions

View File

@ -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);