Commit da903bf1 authored by Vittorio Giovara's avatar Vittorio Giovara Committed by James Almer

thp: convert to new channel layout API

Signed-off-by: 's avatarVittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 30b46fb9
......@@ -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);
......
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