lavfi/signature: fix always true expression

Otherwise since "==" has higher precedence, mode is never checked.

Reviewed-by: Jai Luthra <me@jailuthra.in>
pull/360/head
Valerii Zapodovnikov 4 years ago committed by Jai Luthra
parent 6fcb082b7a
commit fdd45ebf55
  1. 2
      libavfilter/signature_lookup.c

@ -491,7 +491,7 @@ static MatchingInfo evaluate_parameters(AVFilterContext *ctx, SignatureContext *
meandist = (double) goodfcount / (double) distsum;
if (meandist < minmeandist ||
status == STATUS_END_REACHED | STATUS_BEGIN_REACHED ||
status == (STATUS_END_REACHED | STATUS_BEGIN_REACHED) ||
mode == MODE_FAST){
minmeandist = meandist;
/* bestcandidate in this iteration */

Loading…
Cancel
Save