From f4a71eec3252a17adebcb9caa5cfaf12af528ff6 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Fri, 31 Mar 2017 13:32:21 +0200 Subject: [PATCH] ape: convert to new channel layout API Signed-off-by: Vittorio Giovara Signed-off-by: James Almer --- libavformat/ape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/ape.c b/libavformat/ape.c index b1222d9ce0..f5e50046e8 100644 --- a/libavformat/ape.c +++ b/libavformat/ape.c @@ -331,7 +331,7 @@ static int ape_read_header(AVFormatContext * s) st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; st->codecpar->codec_id = AV_CODEC_ID_APE; st->codecpar->codec_tag = MKTAG('A', 'P', 'E', ' '); - st->codecpar->channels = ape->channels; + st->codecpar->ch_layout.nb_channels = ape->channels; st->codecpar->sample_rate = ape->samplerate; st->codecpar->bits_per_coded_sample = ape->bps;