diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-12-03 03:04:05 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-12-03 03:10:05 +0100 |
commit | f84412d6f4e9c1f1d1a2491f9337d7e789c688ba (patch) | |
tree | 0d1a08595066910200e7c8732f768fe8c68dea8f | |
parent | aad3223978526403034ce028bc02c380c7f1e79e (diff) | |
download | ffmpeg-f84412d6f4e9c1f1d1a2491f9337d7e789c688ba.tar.gz |
avfilter/vf_corr: for all zero returns zero score instead of 1
-rw-r--r-- | libavfilter/vf_corr.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |