diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c index 3cf4a7fe18..f16b831ccd 100644 --- a/libavcodec/aacdec.c +++ b/libavcodec/aacdec.c @@ -368,7 +368,7 @@ static void pop_output_configuration(AACContext *ac) { if (ac->oc[1].status != OC_LOCKED) { ac->oc[1] = ac->oc[0]; ac->avctx->channels = ac->oc[1].channels; - ac->avctx->channel_layout = ac->oc[1].channels; + ac->avctx->channel_layout = ac->oc[1].channel_layout; } }