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:
Vittorio Giovara 2017-03-31 18:45:28 +02:00 committed by James Almer
parent 30b46fb980
commit da903bf1fb
1 changed files with 1 additions and 1 deletions

View File

@ -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);