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

Git pushed a commit to branch master
in repository ffmpeg.

commit 104475ecb9c4dc65c849e08b807d78a019b7a2f9
Author:     Niklas Haas <[email protected]>
AuthorDate: Fri Mar 6 18:05:14 2026 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Mon Mar 9 11:25:57 2026 +0100

    swscale/vulkan/ops: fix undefined behavior on SWS_OP_CLEAR
    
    op->rw.frac dereferences nonsense on clear ops.
    
    Sponsored-by: Sovereign Tech Fund
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/vulkan/ops.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libswscale/vulkan/ops.c b/libswscale/vulkan/ops.c
index b423683120..db59e123ef 100644
--- a/libswscale/vulkan/ops.c
+++ b/libswscale/vulkan/ops.c
@@ -182,8 +182,7 @@ static int add_ops_glsl(VulkanPriv *p, FFVulkanOpsCtx *s,
     for (int n = 0; n < ops->num_ops; n++) {
         const SwsOp *op = &ops->ops[n];
         /* Set initial type */
-        if (op->op == SWS_OP_READ || op->op == SWS_OP_WRITE ||
-            op->op == SWS_OP_CLEAR) {
+        if (op->op == SWS_OP_READ || op->op == SWS_OP_WRITE) {
             if (op->rw.frac)
                 return AVERROR(ENOTSUP);
         }

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

Reply via email to