1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

aacdec: Fix popping channel layouts.

'channel_layout' not 'channels' from the stored configuration should go
to AVCodecContext's 'channel_layout'.
This commit is contained in:
Alex Converse 2012-06-19 19:06:34 -07:00
parent 61183b5ab4
commit 43886eaebc

View File

@ -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;
}
}