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

Git pushed a commit to branch master
in repository ffmpeg.

commit 9e56aea4a06c2877868cbe9f83c37177f8ecd54c
Author:     Niklas Haas <[email protected]>
AuthorDate: Sat Nov 7 20:56:07 2026 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Sun Nov 8 00:36:29 2026 +0000

    swscale/x86/ops: remove redundant check
    
    `ret < 0` is already checked by all the code-paths that assign `ret`,
    and worse, this is UB if uops->num_ops == 0.
    
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/x86/ops.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/libswscale/x86/ops.c b/libswscale/x86/ops.c
index 35e8bc9a6d..8c0b14ab0d 100644
--- a/libswscale/x86/ops.c
+++ b/libswscale/x86/ops.c
@@ -671,11 +671,6 @@ static int compile_uops_x86(SwsContext *ctx, const 
SwsUOpList *uops, SwsCompiled
     case 4: out->func = ff_sws_process4_x86; break;
     }
 
-    if (ret < 0) {
-        ff_sws_op_chain_free(chain);
-        return ret;
-    }
-
     ff_sws_uop_list_print(ctx, AV_LOG_DEBUG, uops);
     ff_sws_op_chain_attach(chain, out);
     return 0;

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to