mirror of https://git.ffmpeg.org/ffmpeg.git
opusenc_psy: Typo, use all coeffs in range for band tonality calculation
This commit is contained in:
parent
6c4b9eb935
commit
c7d726f7f4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue