[FFmpeg-cvslog] avfilter/vf_corr: for all zero returns zero score instead of 1
Paul B Mahol
git at videolan.org
Sun Dec 3 04:08:30 EET 2023
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Dec 3 03:04:05 2023 +0100| [f84412d6f4e9c1f1d1a2491f9337d7e789c688ba] | committer: Paul B Mahol
avfilter/vf_corr: for all zero returns zero score instead of 1
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f84412d6f4e9c1f1d1a2491f9337d7e789c688ba
---
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;
}
}
More information about the ffmpeg-cvslog
mailing list