Commit c7d726f7 authored by Daniil Cherednik's avatar Daniil Cherednik Committed by Rostislav Pehlivanov

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

parent 6c4b9eb9
...@@ -119,7 +119,7 @@ static void step_collect_psy_metrics(OpusPsyContext *s, int index) ...@@ -119,7 +119,7 @@ static void step_collect_psy_metrics(OpusPsyContext *s, int index)
for (j = 0; j < range; j++) { for (j = 0; j < range; j++) {
const float c_s = coeffs[j]*coeffs[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); st->tone[ch][i] += sqrtf(dist_dev);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment