[FFmpeg-cvslog] lavfi/signature: fix always true expression

Valerii Zapodovnikov git at videolan.org
Sun Jul 25 02:41:44 EEST 2021


ffmpeg | branch: master | Valerii Zapodovnikov <val.zapod.vz at gmail.com> | Mon May 24 04:00:24 2021 +0300| [fdd45ebf5563564a23e93d6c6bdcc43d481b419c] | committer: Jai Luthra

lavfi/signature: fix always true expression

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

Reviewed-by: Jai Luthra <me at jailuthra.in>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fdd45ebf5563564a23e93d6c6bdcc43d481b419c
---

 libavfilter/signature_lookup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/signature_lookup.c b/libavfilter/signature_lookup.c
index f1d378237a..977f898049 100644
--- a/libavfilter/signature_lookup.c
+++ b/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 */



More information about the ffmpeg-cvslog mailing list