Message ID | 46f5bafa-e262-0af1-8a48-9bd4d509df9a@gmail.com |
---|---|
State | New |
Headers | show |
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c index 4d0abb107f..1ee12ee669 100644 --- a/libavcodec/aacenc.c +++ b/libavcodec/aacenc.c @@ -972,6 +972,8 @@ static av_cold int aac_encode_init(AVCodecContext *avctx) /* Channel map and unspecified bitrate guessing */ s->channels = avctx->channels; + if (s->channels == 1) + avctx->channel_layout = AV_CH_LAYOUT_MONO; s->needs_pce = 1; for (i = 0; i < FF_ARRAY_ELEMS(aac_normal_chan_layouts); i++) {