thp: convert to new channel layout API

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
release/5.1
Vittorio Giovara 8 years ago committed by James Almer
parent 30b46fb980
commit da903bf1fb
  1. 2
      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);

Loading…
Cancel
Save