From 7d6dd90f3aa89601700c443910c7d1fff306e1c3 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 28 Jul 2023 22:25:22 +0200 Subject: [PATCH] avfilter/avf_showcwt: unbreak highest frequencies The kernel was truncated too much. --- 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 1bf874c97b..7a8c108906 100644 --- a/libavfilter/avf_showcwt.c +++ b/libavfilter/avf_showcwt.c @@ -631,7 +631,7 @@ static int compute_kernel(AVFilterContext *ctx) { ShowCWTContext *s = ctx->priv; const float correction = s->input_padding_size / (float)s->input_sample_count; - const int size = s->input_sample_count; + const int size = s->input_padding_size; const int output_sample_count = s->output_sample_count; const int fsize = s->frequency_band_count; int *kernel_start = s->kernel_start;