Commit 5f2c8315 authored by Paul B Mahol's avatar Paul B Mahol Committed by Vittorio Giovara

thp: set duration for audio stream too

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 1d62ee38
...@@ -126,6 +126,7 @@ static int thp_read_header(AVFormatContext *s) ...@@ -126,6 +126,7 @@ static int thp_read_header(AVFormatContext *s)
st->codec->codec_tag = 0; /* no fourcc */ st->codec->codec_tag = 0; /* no fourcc */
st->codec->channels = avio_rb32(pb); /* numChannels. */ st->codec->channels = avio_rb32(pb); /* numChannels. */
st->codec->sample_rate = avio_rb32(pb); /* Frequency. */ st->codec->sample_rate = avio_rb32(pb); /* Frequency. */
st->duration = avio_rb32(pb);
avpriv_set_pts_info(st, 64, 1, st->codec->sample_rate); 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