1
0
Fork 0

avfilter/vf_corr: for all zero returns zero score instead of 1

This commit is contained in:
Paul B Mahol 2023-12-03 03:04:05 +01:00
parent aad3223978
commit f84412d6f4
1 changed files with 1 additions and 1 deletions

View File

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