Commit 81b3ebba authored by Anton Khirnov's avatar Anton Khirnov Committed by James Almer

sdx: convert to new channel layout API

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent e968ae81
......@@ -54,7 +54,7 @@ static int sdx_read_header(AVFormatContext *s)
return AVERROR(ENOMEM);
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);
switch (depth) {
case 8:
......
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