sdx: convert to new channel layout API

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
Anton Khirnov 2019-05-13 11:11:26 +02:00 committed by James Almer
parent e968ae81f2
commit 81b3ebbae9
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ static int sdx_read_header(AVFormatContext *s)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
st->codecpar->channels = 1; st->codecpar->ch_layout.nb_channels = 1;
st->codecpar->sample_rate = avio_rl32(s->pb); st->codecpar->sample_rate = avio_rl32(s->pb);
switch (depth) { switch (depth) {
case 8: case 8: