aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/avf_showcwt.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-07-28 22:25:22 +0200
committerPaul B Mahol <onemda@gmail.com>2023-07-28 22:32:31 +0200
commit7d6dd90f3aa89601700c443910c7d1fff306e1c3 (patch)
tree6614887c6c552e56e111c1d04a96de544a127993 /libavfilter/avf_showcwt.c
parentdca54600f0672f8f54cb61188a0bd35e7b4a53f2 (diff)
downloadffmpeg-7d6dd90f3aa89601700c443910c7d1fff306e1c3.tar.gz
avfilter/avf_showcwt: unbreak highest frequencies
The kernel was truncated too much.
Diffstat (limited to 'libavfilter/avf_showcwt.c')
-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 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;