Revision 495af353

View differences:

libavcodec/aacenc.c
561 561
            chans    = tag == TYPE_CPE ? 2 : 1;
562 562
            cpe      = &s->cpe[i];
563 563
            for (j = 0; j < chans; j++) {
564
                s->cur_channel = start_ch + j;
564 565
                s->coder->search_for_quantizers(avctx, s, &cpe->ch[j], s->lambda);
565 566
            }
566 567
            cpe->common_window = 0;
......
576 577
                    }
577 578
                }
578 579
            }
580
            s->cur_channel = start_ch;
579 581
            if (cpe->common_window && s->coder->search_for_ms)
580 582
                s->coder->search_for_ms(s, cpe, s->lambda);
581 583
            adjust_frame_information(s, cpe, chans);

Also available in: Unified diff