summaryrefslogtreecommitdiff
path: root/libavcodec/mpegaudioenc_template.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-05-29 09:36:27 +0200
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:43 -0300
commit53d25983bf2e9db8a9b8107fde9a82aad5259d8a (patch)
tree18cbc2a88e093bfc18eda3bc79e5c2572c2d553f /libavcodec/mpegaudioenc_template.c
parenta96c94bbd809e1bf56cab276498f7efc2869fbd2 (diff)
mpegaudio: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/mpegaudioenc_template.c')
-rw-r--r--libavcodec/mpegaudioenc_template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegaudioenc_template.c b/libavcodec/mpegaudioenc_template.c
index 1ffd31f7cb..3299360f0c 100644
--- a/libavcodec/mpegaudioenc_template.c
+++ b/libavcodec/mpegaudioenc_template.c
@@ -79,7 +79,7 @@ static av_cold int MPA_encode_init(AVCodecContext *avctx)
MpegAudioContext *s = avctx->priv_data;
int freq = avctx->sample_rate;
int bitrate = avctx->bit_rate;
- int channels = avctx->channels;
+ int channels = avctx->ch_layout.nb_channels;
int i, v, table;
float a;