[FFmpeg-cvslog] avfilter/avf_showcwt: remove not needed fabsf()
Paul B Mahol
git at videolan.org
Fri Jul 28 23:27:11 EEST 2023
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Jul 28 22:26:57 2023 +0200| [8c67e134738037f3d5176c9370ce446b82d3709e] | committer: Paul B Mahol
avfilter/avf_showcwt: remove not needed fabsf()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8c67e134738037f3d5176c9370ce446b82d3709e
---
libavfilter/avf_showcwt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the ffmpeg-cvslog
mailing list