'channel_layout' not 'channels' from the stored configuration should go to AVCodecContext's 'channel_layout'.
Unified · Split
| @@ -368,7 +368,7 @@ static void pop_output_configuration(AACContext *ac) { · 367 unmodified lines | ||
| 368 | 368 | if (ac->oc[1].status != OC_LOCKED) { |
| 369 | 369 | ac->oc[1] = ac->oc[0]; |
| 370 | 370 | ac->avctx->channels = ac->oc[1].channels; |
| 371 | − ac->avctx->channel_layout = ac->oc[1].channels; | |
| 371 | + ac->avctx->channel_layout = ac->oc[1].channel_layout; | |
| 372 | 372 | } |
| 373 | 373 | } |
| 374 | 374 | |