History

lavfi/signature: fix always true expression

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

Valerii Zapodovnikov committed 5 years ago

Commit fdd45eb1 parent 6fcb0821 file · +1 −1Browse files

Unified · Split

libavfilter/signature_lookup.c+1−1
@@ -491,7 +491,7 @@ static MatchingInfo evaluate_parameters(AVFilterContext *ctx, SignatureContext * · 490 unmodified lines
491491 meandist = (double) goodfcount / (double) distsum;
492492
493493 if (meandist < minmeandist ||
494− status == STATUS_END_REACHED | STATUS_BEGIN_REACHED ||
494+ status == (STATUS_END_REACHED | STATUS_BEGIN_REACHED) ||
495495 mode == MODE_FAST){
496496 minmeandist = meandist;
497497 /* bestcandidate in this iteration */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t