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

Git pushed a commit to branch master
in repository ffmpeg.

commit 5e7983d7fc34985a8750a66ad5b727ae803b3d6b
Author:     Ramiro Polla <[email protected]>
AuthorDate: Thu Jul 2 16:18:13 2026 +0200
Commit:     Ramiro Polla <[email protected]>
CommitDate: Thu Jul 16 08:30:30 2026 +0000

    swscale/aarch64/ops: fix SWS_OP_CLEAR parameter extraction
    
    The mask at op->clear.mask already contains only the components which
    are necessary. The values in op->clear.value may contain stale values
    for unneeded components.
    
    Sponsored-by: Sovereign Tech Fund
    Signed-off-by: Ramiro Polla <[email protected]>
---
 libswscale/aarch64/ops_impl_conv.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libswscale/aarch64/ops_impl_conv.c 
b/libswscale/aarch64/ops_impl_conv.c
index 431af91d98..638c1d63ba 100644
--- a/libswscale/aarch64/ops_impl_conv.c
+++ b/libswscale/aarch64/ops_impl_conv.c
@@ -185,10 +185,10 @@ static int convert_to_aarch64_impl(SwsContext *ctx, const 
SwsOpList *ops, int n,
         break;
     case AARCH64_SWS_OP_CLEAR:
         out->mask = 0;
-        MASK_SET(out->mask, 0, !!op->clear.value[0].den);
-        MASK_SET(out->mask, 1, !!op->clear.value[1].den);
-        MASK_SET(out->mask, 2, !!op->clear.value[2].den);
-        MASK_SET(out->mask, 3, !!op->clear.value[3].den);
+        for (int i = 0; i < 4; i++) {
+            if (SWS_COMP_TEST(op->clear.mask, i))
+                MASK_SET(out->mask, i, 1);
+        }
         break;
     case AARCH64_SWS_OP_EXPAND:
     case AARCH64_SWS_OP_CONVERT:

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

Reply via email to