1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

avfilter/avf_showcwt: make kernels symmetrical

This commit is contained in:
Paul B Mahol 2023-07-29 11:21:28 +02:00
parent 6f6907fd20
commit 44813d66e2

View File

@ -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);