mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avfilter/signature_lookup: Fix 2 differences to the refernce SW
Fixes: CID1403227 Division or modulo by float zero Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 25cb66369e7b81bd280f0bdd6d51a0e2e11881e3) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
935279b855
commit
ba031f8771
@ -495,10 +495,10 @@ static MatchingInfo evaluate_parameters(AVFilterContext *ctx, SignatureContext *
|
||||
continue; /* matching sequence is too short */
|
||||
if ((double) goodfcount / (double) fcount < sc->thit)
|
||||
continue;
|
||||
if ((double) goodfcount*0.5 < FFMAX(gooda, goodb))
|
||||
if ((double) goodfcount*0.5 <= FFMAX(gooda, goodb))
|
||||
continue;
|
||||
|
||||
meandist = (double) goodfcount / (double) distsum;
|
||||
meandist = (double) distsum / (double) goodfcount;
|
||||
|
||||
if (meandist < minmeandist ||
|
||||
status == (STATUS_END_REACHED | STATUS_BEGIN_REACHED) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user