diff options
Diffstat (limited to 'libavcodec/mpegaudioenc_template.c')
-rw-r--r-- | libavcodec/mpegaudioenc_template.c | 2 |
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; |