avfilter/avf_showcwt: fix index storing

This commit is contained in:
Paul B Mahol 2023-07-21 00:28:01 +02:00
parent 86a1904f41
commit 74474a551b

View File

@ -662,7 +662,7 @@ static void compute_kernel(AVFilterContext *ctx)
for (int n = 0; n < size; n++) {
if (kernel[size - n - 1].re != 0.f) {
kernel_stop[y] = size - n;
kernel_stop[y] = size - n - 1;
break;
}
}