[FFmpeg-cvslog] avfilter/avf_showcwt: make kernels symmetrical
Paul B Mahol
git at videolan.org
Sat Jul 29 12:23:27 EEST 2023
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Jul 29 11:21:28 2023 +0200| [44813d66e2c7106a36e8b4537d5b50e54d679fb4] | committer: Paul B Mahol
avfilter/avf_showcwt: make kernels symmetrical
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=44813d66e2c7106a36e8b4537d5b50e54d679fb4
---
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 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);
More information about the ffmpeg-cvslog
mailing list