aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-07-23 09:04:46 +0200
committerPaul B Mahol <onemda@gmail.com>2023-07-24 11:01:21 +0200
commit9fb2efe3b33e9b589f6e93a32b5128b3aef98ab1 (patch)
tree1e4a5d4f92048e89ce94c6f39d48c67631bab2e1 /libavfilter
parent6e5e74c55bb71e17dcfc7519c6badf3334644f48 (diff)
downloadffmpeg-9fb2efe3b33e9b589f6e93a32b5128b3aef98ab1.tar.gz
avfilter/avf_showcwt: make read only variable const
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/avf_showcwt.c4
1 files 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));