1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/avf_showcwt: make read only variable const

This commit is contained in:
Paul B Mahol 2023-07-23 09:04:46 +02:00
parent 6e5e74c55b
commit 9fb2efe3b3

View File

@ -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));