diff options
author | James Almer <jamrial@gmail.com> | 2016-08-20 01:03:00 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2016-08-20 11:50:58 -0300 |
commit | 27ee70290ef4c032bff5c1dd7c0db2f6d17018fe (patch) | |
tree | a34b246cc726245a6c73383b789bd037866977a9 /libavfilter | |
parent | 18ce63a60e1bffc35b4df5d8a4f9a1ff1a96cb9a (diff) | |
download | ffmpeg-27ee70290ef4c032bff5c1dd7c0db2f6d17018fe.tar.gz |
avfilter/window_func: use a constant instead of acosh()
Should fix compilation with non C99 compilers like msvc 2012, where
acosh() is not available.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/window_func.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/window_func.c b/libavfilter/window_func.c index fcdf6ea30e..acf1b20847 100644 --- a/libavfilter/window_func.c +++ b/libavfilter/window_func.c @@ -117,7 +117,7 @@ void ff_generate_window_func(float *lut, int N, int win_func, float *overlap) *overlap = 0.33; break; case WFUNC_DOLPH: { - double b = cosh(acosh(pow(10., 3)) / (N-1)), sum, t, c, norm = 0; + double b = cosh(7.6009022095419887 / (N-1)), sum, t, c, norm = 0; int j; 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) |