[FFmpeg-cvslog] avfilter/avf_showcwt: make read only variable const
Paul B Mahol
git at videolan.org
Mon Jul 24 11:54:18 EEST 2023
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Jul 23 09:04:46 2023 +0200| [9fb2efe3b33e9b589f6e93a32b5128b3aef98ab1] | committer: Paul B Mahol
avfilter/avf_showcwt: make read only variable const
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9fb2efe3b33e9b589f6e93a32b5128b3aef98ab1
---
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));
More information about the ffmpeg-cvslog
mailing list