aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/bmvaudio.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-05-07 07:20:32 +0200
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:40 -0300
commit1d2f7e0ea3f037e2310bfd493b3427c42877e0a4 (patch)
tree0969a93f8a71afcabfada0ec386f8e39326459bf /libavcodec/bmvaudio.c
parent14b28ab6f787e451d08ab7cb6cd964922d4f2173 (diff)
downloadffmpeg-1d2f7e0ea3f037e2310bfd493b3427c42877e0a4.tar.gz
bmvaudio: 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 'libavcodec/bmvaudio.c')
-rw-r--r--libavcodec/bmvaudio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/bmvaudio.c b/libavcodec/bmvaudio.c
index a7eae46103..d81dba8821 100644
--- a/libavcodec/bmvaudio.c
+++ b/libavcodec/bmvaudio.c
@@ -31,8 +31,8 @@ static const int bmv_aud_mults[16] = {
static av_cold int bmv_aud_decode_init(AVCodecContext *avctx)
{
- avctx->channels = 2;
- avctx->channel_layout = AV_CH_LAYOUT_STEREO;
+ av_channel_layout_uninit(&avctx->ch_layout);
+ avctx->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_STEREO;
avctx->sample_fmt = AV_SAMPLE_FMT_S16;
return 0;