This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 9adfe25ead49280ecec14242a134c7c5dfe0af0a
Author:     Niklas Haas <[email protected]>
AuthorDate: Tue Feb 24 12:21:11 2026 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Thu Feb 26 10:15:52 2026 +0000

    swscale/ops_chain: properly mark unreachable branch
    
    By breaking to the `av_unreachable` below. This branch is unreachable 
because
    of the `if (entry->flexible)` branch further above.
    
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/ops_chain.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libswscale/ops_chain.c b/libswscale/ops_chain.c
index d1ec1ef83d..e5fbc4f016 100644
--- a/libswscale/ops_chain.c
+++ b/libswscale/ops_chain.c
@@ -152,7 +152,7 @@ static int op_match(const SwsOp *op, const SwsOpEntry 
*entry, const SwsComps nex
     case SWS_OP_LSHIFT:
     case SWS_OP_RSHIFT:
         av_assert1(entry->flexible);
-        return score;
+        break;
     case SWS_OP_SWIZZLE:
         for (int i = 0; i < 4; i++) {
             if (op->swizzle.in[i] != entry->swizzle.in[i] && !next.unused[i])
@@ -169,7 +169,7 @@ static int op_match(const SwsOp *op, const SwsOpEntry 
*entry, const SwsComps nex
     case SWS_OP_MIN:
     case SWS_OP_MAX:
         av_assert1(entry->flexible);
-        return score;
+        break;
     case SWS_OP_LINEAR:
         /* All required elements must be present */
         if (op->lin.mask & ~entry->linear_mask)

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to