You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avfilter/avf_showcwt: make kernels symmetrical
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user