aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-07-29 11:21:28 +0200
committerPaul B Mahol <onemda@gmail.com>2023-07-29 11:30:16 +0200
commit44813d66e2c7106a36e8b4537d5b50e54d679fb4 (patch)
tree122be0f32b8d95539d01b5bc7442fe405d5b3a2c /libavfilter
parent6f6907fd202a08826ceefe0fe2bd6501a696ed15 (diff)
downloadffmpeg-44813d66e2c7106a36e8b4537d5b50e54d679fb4.tar.gz
avfilter/avf_showcwt: make kernels symmetrical
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/avf_showcwt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avf_showcwt.c b/libavfilter/avf_showcwt.c
index 85cb19103b..96b8841380 100644
--- a/libavfilter/avf_showcwt.c
+++ b/libavfilter/avf_showcwt.c
@@ -655,7 +655,7 @@ static int compute_kernel(AVFilterContext *ctx)
memset(tkernel, 0, size * sizeof(*tkernel));
for (int n = 0; n < size; n++) {
- float ff, f = n-frequency;
+ float ff, f = n+0.5f-frequency;
f = hsize - fabsf(f - hsize);
ff = expf(-f*f*deviation);