diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-09-16 10:57:09 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-09-16 10:57:09 +0200 |
commit | fa045c3ce288e3ffb6292cb8c0a1b21481de6974 (patch) | |
tree | 53a8d917412e9a98ac606f3909b7bfda8c034e7d /libavfilter/window_func.h | |
parent | 654601dd1d3b728f1d4e5cdb8f8368de2f600b16 (diff) |
avfilter/window_func: clarify intention in dolph window calculation
Diffstat (limited to 'libavfilter/window_func.h')
-rw-r--r-- | libavfilter/window_func.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/window_func.h b/libavfilter/window_func.h index 1de8f1fbdb..494c5b1c66 100644 --- a/libavfilter/window_func.h +++ b/libavfilter/window_func.h @@ -133,7 +133,7 @@ static inline void generate_window_func(float *lut, int N, int win_func, for (c = 1 - 1 / (b*b), n = (N-1) / 2; n >= 0; --n) { for (sum = !n, b = t = j = 1; j <= n && sum != t; b *= (n-j) * (1./j), ++j) t = sum, sum += (b *= c * (N - n - j) * (1./j)); - sum /= (N - 1 - n), sum /= (norm = norm ? norm : sum); + sum /= (N - 1 - n), norm = norm ? norm : sum, sum /= norm; lut[n] = sum; lut[N - 1 - n] = sum; } |