[FFmpeg-cvslog] avfilter/avf_showcwt: fix index storing

Paul B Mahol git at videolan.org
Fri Jul 21 01:38:19 EEST 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Jul 21 00:28:01 2023 +0200| [74474a551b63f778776e94d094c5ea55c3639b9b] | committer: Paul B Mahol

avfilter/avf_showcwt: fix index storing

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=74474a551b63f778776e94d094c5ea55c3639b9b
---

 libavfilter/avf_showcwt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
             }
         }



More information about the ffmpeg-cvslog mailing list