You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
lavfi/signature: fix always true expression
Otherwise since "==" has higher precedence, mode is never checked. Reviewed-by: Jai Luthra <me@jailuthra.in>
This commit is contained in:
committed by
Jai Luthra
parent
6fcb082b7a
commit
fdd45ebf55
@@ -491,7 +491,7 @@ static MatchingInfo evaluate_parameters(AVFilterContext *ctx, SignatureContext *
|
|||||||
meandist = (double) goodfcount / (double) distsum;
|
meandist = (double) goodfcount / (double) distsum;
|
||||||
|
|
||||||
if (meandist < minmeandist ||
|
if (meandist < minmeandist ||
|
||||||
status == STATUS_END_REACHED | STATUS_BEGIN_REACHED ||
|
status == (STATUS_END_REACHED | STATUS_BEGIN_REACHED) ||
|
||||||
mode == MODE_FAST){
|
mode == MODE_FAST){
|
||||||
minmeandist = meandist;
|
minmeandist = meandist;
|
||||||
/* bestcandidate in this iteration */
|
/* bestcandidate in this iteration */
|
||||||
|
Reference in New Issue
Block a user