aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/avf_showcwt.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-07-21 00:28:01 +0200
committerPaul B Mahol <onemda@gmail.com>2023-07-21 00:44:01 +0200
commit74474a551b63f778776e94d094c5ea55c3639b9b (patch)
treefb1e57d87aa3e7a5133792812cc7e8370a5a7957 /libavfilter/avf_showcwt.c
parent86a1904f417cdbeac48f4def86cd51e9b29d1ed1 (diff)
downloadffmpeg-74474a551b63f778776e94d094c5ea55c3639b9b.tar.gz
avfilter/avf_showcwt: fix index storing
Diffstat (limited to 'libavfilter/avf_showcwt.c')
-rw-r--r--libavfilter/avf_showcwt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avf_showcwt.c b/libavfilter/avf_showcwt.c
index 51a45ef636..ee0d697e1e 100644
--- a/libavfilter/avf_showcwt.c
+++ b/libavfilter/avf_showcwt.c
@@ -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;
}
}