From 9fb2efe3b33e9b589f6e93a32b5128b3aef98ab1 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 23 Jul 2023 09:04:46 +0200 Subject: [PATCH] avfilter/avf_showcwt: make read only variable const --- libavfilter/avf_showcwt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/avf_showcwt.c b/libavfilter/avf_showcwt.c index 0661afbcdd..8badfbd34e 100644 --- a/libavfilter/avf_showcwt.c +++ b/libavfilter/avf_showcwt.c @@ -577,7 +577,7 @@ static int run_channel_cwt(AVFilterContext *ctx, void *arg, int jobnr, int nb_jo { ShowCWTContext *s = ctx->priv; const int ch = *(int *)arg; - AVComplexFloat *dst = (AVComplexFloat *)s->fft_out->extended_data[ch]; + const AVComplexFloat *fft_out = (const AVComplexFloat *)s->fft_out->extended_data[ch]; const int output_padding_size = s->output_padding_size; const int ihop_size = s->ihop_size; const int ioffset = (output_padding_size - ihop_size) >> 1; @@ -597,7 +597,7 @@ static int run_channel_cwt(AVFilterContext *ctx, void *arg, int jobnr, int nb_jo const int kernel_stop = s->kernel_stop[y]; const int kernel_range = kernel_stop - kernel_start; - memcpy(srcx, dst + kernel_start, sizeof(*dst) * kernel_range); + memcpy(srcx, fft_out + kernel_start, sizeof(*fft_out) * kernel_range); s->fdsp->vector_fmul((float *)dstx, (const float *)srcx, (const float *)kernel, FFALIGN(kernel_range * 2, 16));