diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-07-28 22:26:57 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-07-28 22:32:31 +0200 |
commit | 8c67e134738037f3d5176c9370ce446b82d3709e (patch) | |
tree | 1cc47b9c60a95c1ae95cbe1f9e513ce1a21772fc /libavfilter | |
parent | 7d6dd90f3aa89601700c443910c7d1fff306e1c3 (diff) | |
download | ffmpeg-8c67e134738037f3d5176c9370ce446b82d3709e.tar.gz |
avfilter/avf_showcwt: remove not needed fabsf()
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/avf_showcwt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avf_showcwt.c b/libavfilter/avf_showcwt.c index 7a8c108906..4aa008ca2e 100644 --- a/libavfilter/avf_showcwt.c +++ b/libavfilter/avf_showcwt.c @@ -654,7 +654,7 @@ static int compute_kernel(AVFilterContext *ctx) memset(tkernel, 0, size * sizeof(*tkernel)); for (int n = 0; n < size; n++) { - float ff, f = fabsf(n-frequency); + float ff, f = n-frequency; ff = expf(-f*f*deviation); tkernel[n] = ff; |