From f84412d6f4e9c1f1d1a2491f9337d7e789c688ba Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 3 Dec 2023 03:04:05 +0100 Subject: [PATCH] avfilter/vf_corr: for all zero returns zero score instead of 1 --- libavfilter/vf_corr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_corr.c b/libavfilter/vf_corr.c index e2e794851e..7e0f81921f 100644 --- a/libavfilter/vf_corr.c +++ b/libavfilter/vf_corr.c @@ -234,7 +234,7 @@ static int do_corr(FFFrameSync *fs) if (sumq > 0.0) { comp_score[c] = av_clipd(sum12 / sumq,-1.0,1.0); } else { - comp_score[c] = sum1q == sum2q ? 1.f : 0.f; + comp_score[c] = 0.f; } }