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

Git pushed a commit to branch master
in repository ffmpeg.

commit 7a71a01a1b54a88f21206cd9a358e66fc6f1db51
Author:     Niklas Haas <[email protected]>
AuthorDate: Tue Mar 31 16:18:44 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Thu Apr 16 23:25:17 2026 +0200

    swscale/ops: nuke SwsComps.unused
    
    Finally, remove the last relic of this accursed design mistake.
    
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/ops.c | 5 +----
 libswscale/ops.h | 1 -
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/libswscale/ops.c b/libswscale/ops.c
index 5c09e0f72a..0dec54c49c 100644
--- a/libswscale/ops.c
+++ b/libswscale/ops.c
@@ -581,10 +581,7 @@ void ff_sws_op_list_update_comps(SwsOpList *ops)
             break;
         }
 
-        for (int i = 0; i < 4; i++) {
-            need_out[i] = need_in[i];
-            op->comps.unused[i] = !need_in[i];
-        }
+        memcpy(need_out, need_in, sizeof(need_in));
     }
 }
 
diff --git a/libswscale/ops.h b/libswscale/ops.h
index 86bf3312e6..b23f500695 100644
--- a/libswscale/ops.h
+++ b/libswscale/ops.h
@@ -108,7 +108,6 @@ typedef enum SwsCompFlags {
 
 typedef struct SwsComps {
     SwsCompFlags flags[4]; /* knowledge about (output) component contents */
-    bool unused[4]; /* which input components are definitely unused */
 
     /* Keeps track of the known possible value range, or {0, 0} for undefined
      * or (unknown range) floating point inputs */

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

Reply via email to