From 81b3ebbae9b42425b524b8ea413845a09e99f578 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 13 May 2019 11:11:26 +0200 Subject: [PATCH] sdx: convert to new channel layout API Signed-off-by: James Almer --- libavformat/sdxdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/sdxdec.c b/libavformat/sdxdec.c index 76fd2caa00..5628278928 100644 --- a/libavformat/sdxdec.c +++ b/libavformat/sdxdec.c @@ -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: