mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
thp: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
30b46fb980
commit
da903bf1fb
@ -142,7 +142,7 @@ static int thp_read_header(AVFormatContext *s)
|
||||
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||
st->codecpar->codec_id = AV_CODEC_ID_ADPCM_THP;
|
||||
st->codecpar->codec_tag = 0; /* no fourcc */
|
||||
st->codecpar->channels = avio_rb32(pb); /* numChannels. */
|
||||
st->codecpar->ch_layout.nb_channels = avio_rb32(pb);
|
||||
st->codecpar->sample_rate = avio_rb32(pb); /* Frequency. */
|
||||
st->duration = avio_rb32(pb);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user