aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/ape.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2017-03-31 13:32:21 +0200
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:30 -0300
commitf4a71eec3252a17adebcb9caa5cfaf12af528ff6 (patch)
treef0f6d0da0114275bbc476ff0c30fad4162149eb4 /libavformat/ape.c
parent577022b09c202a9a18a69d97791a4fb62684c297 (diff)
downloadffmpeg-f4a71eec3252a17adebcb9caa5cfaf12af528ff6.tar.gz
ape: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/ape.c')
-rw-r--r--libavformat/ape.c2
1 files changed, 1 insertions, 1 deletions
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;