mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avfilter/vf_corr: for all zero returns zero score instead of 1
This commit is contained in:
parent
aad3223978
commit
f84412d6f4
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user