Browse Source

aacdec: Fix popping channel layouts.

'channel_layout' not 'channels' from the stored configuration should go
to AVCodecContext's 'channel_layout'.
tags/n1.0
Alex Converse 13 years ago
parent
commit
43886eaebc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/aacdec.c

+ 1
- 1
libavcodec/aacdec.c 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;
}
}



Loading…
Cancel
Save