[FFmpeg-cvslog] avfilter/avf_showcwt: move variables out of loop
Paul B Mahol
git at videolan.org
Fri Jul 21 01:38:17 EEST 2023
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Jul 20 22:30:42 2023 +0200| [86a1904f417cdbeac48f4def86cd51e9b29d1ed1] | committer: Paul B Mahol
avfilter/avf_showcwt: move variables out of loop
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=86a1904f417cdbeac48f4def86cd51e9b29d1ed1
---
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 578312cdd6..51a45ef636 100644
--- a/libavfilter/avf_showcwt.c
+++ b/libavfilter/avf_showcwt.c
@@ -634,12 +634,12 @@ static void compute_kernel(AVFilterContext *ctx)
const float scale_factor = 1.f/(float)size;
const int output_sample_count = s->output_sample_count;
const int fsize = s->frequency_band_count;
+ int *kernel_start = s->kernel_start;
+ int *kernel_stop = s->kernel_stop;
unsigned *index = s->index;
for (int y = 0; y < fsize; y++) {
AVComplexFloat *kernel = (AVComplexFloat *)s->kernel->extended_data[y];
- int *kernel_start = s->kernel_start;
- int *kernel_stop = s->kernel_stop;
float frequency = s->frequency_band[y*2];
float deviation = 1.f / (s->frequency_band[y*2+1] *
output_sample_count);
More information about the ffmpeg-cvslog
mailing list