mirror of https://git.ffmpeg.org/ffmpeg.git
thp: set duration for audio stream too
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
1d62ee3889
commit
5f2c8315b3
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue