diff --git a/libavformat/thp.c b/libavformat/thp.c index 7103cf4f8a..fdb499bf42 100644 --- a/libavformat/thp.c +++ b/libavformat/thp.c @@ -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);