mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 09:52:17 +00:00
avformat/thp: set duration for audio stream too
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
035ae3c009
commit
ff1e44b01e
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user