mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 21:20:41 +00:00
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
Block a user