Revision 039821a8

View differences:

libavcodec/aac.c
1456 1456
 */
1457 1457
static void apply_independent_coupling(AACContext * ac, SingleChannelElement * target, ChannelElement * cce, int index) {
1458 1458
    int i;
1459
    const float gain = cce->coup.gain[index][0];
1460
    const float bias = ac->add_bias;
1461
    const float* src = cce->ch[0].ret;
1462
    float* dest = target->ret;
1463

  
1459 1464
    for (i = 0; i < 1024; i++)
1460
        target->ret[i] += cce->coup.gain[index][0] * (cce->ch[0].ret[i] - ac->add_bias);
1465
        dest[i] += gain * (src[i] - bias);
1461 1466
}
1462 1467

  
1463 1468
/**

Also available in: Unified diff