Revision e4a35244 libavcodec/acelp_pitch_delay.c

View differences:

libavcodec/acelp_pitch_delay.c
128 128
    // ^g_c = ^gamma_gc * 100.05 (predicted dB + mean dB - dB of fixed vector)
129 129
    // Note 10^(0.05 * -10log(average x2)) = 1/sqrt((average x2)).
130 130
    float val = fixed_gain_factor *
131
        exp2f(log2f(10.0) * 0.05 *
131
        exp2f(M_LOG2_10 * 0.05 *
132 132
              (ff_dot_productf(pred_table, prediction_error, 4) +
133 133
               energy_mean)) /
134 134
        sqrtf(fixed_mean_energy);

Also available in: Unified diff