summaryrefslogtreecommitdiff
path: root/libavcodec/atrac9dec.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-05-28 22:26:08 +0200
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:40 -0300
commit76313d314e72a94db9baf420e8b67b47fa37e351 (patch)
treecbd384fd6eb028912b23bd43d0a4a4dab0861d79 /libavcodec/atrac9dec.c
parent00fd056bb4e6862ac97994390a8f5b082175f29f (diff)
atrac9: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/atrac9dec.c')
-rw-r--r--libavcodec/atrac9dec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/atrac9dec.c b/libavcodec/atrac9dec.c
index 1063044815..b13235cfb9 100644
--- a/libavcodec/atrac9dec.c
+++ b/libavcodec/atrac9dec.c
@@ -938,8 +938,8 @@ static av_cold int atrac9_decode_init(AVCodecContext *avctx)
}
s->block_config = &at9_block_layout[block_config_idx];
- avctx->channel_layout = s->block_config->channel_layout;
- avctx->channels = av_get_channel_layout_nb_channels(avctx->channel_layout);
+ av_channel_layout_uninit(&avctx->ch_layout);
+ avctx->ch_layout = s->block_config->channel_layout;
avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;
if (get_bits1(&gb)) {