opusenc_psy: Typo, use all coeffs in range for band tonality calculation

This commit is contained in:
Daniil Cherednik 2018-01-09 21:15:20 +03:00 committed by Rostislav Pehlivanov
parent 6c4b9eb935
commit c7d726f7f4

View File

@ -119,7 +119,7 @@ static void step_collect_psy_metrics(OpusPsyContext *s, int index)
for (j = 0; j < range; j++) {
const float c_s = coeffs[j]*coeffs[j];
dist_dev = (avg_c_s - c_s)*(avg_c_s - c_s);
dist_dev += (avg_c_s - c_s)*(avg_c_s - c_s);
}
st->tone[ch][i] += sqrtf(dist_dev);