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

Git pushed a commit to branch master
in repository ffmpeg.

commit e52459195c247b51cd813fd5aa8ab68e88d3affe
Author:     Niklas Haas <[email protected]>
AuthorDate: Sat Jun 20 02:50:26 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Sat Jun 20 02:50:26 2026 +0200

    swscale/ops: simplify SWS_OP_READ default comps handling
    
    We can still pre-fill the prev array here; ff_sws_apply_op_q() is a no-op.
    
    Sponsored-by: Sovereign Tech Fund
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/ops.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/libswscale/ops.c b/libswscale/ops.c
index 31bb2bdec4..1ea5261c3d 100644
--- a/libswscale/ops.c
+++ b/libswscale/ops.c
@@ -361,7 +361,6 @@ void ff_sws_op_list_update_comps(SwsOpList *ops)
         SwsOp *op = &ops->ops[n];
 
         switch (op->op) {
-        case SWS_OP_READ:
         case SWS_OP_LINEAR:
         case SWS_OP_DITHER:
         case SWS_OP_SWAP_BYTES:
@@ -393,11 +392,6 @@ void ff_sws_op_list_update_comps(SwsOpList *ops)
                 op->comps.min[i]   = ops->comps_src.min[idx];
                 op->comps.max[i]   = ops->comps_src.max[idx];
             }
-            for (int i = op->rw.elems; i < 4; i++) {
-                op->comps.flags[i] = prev.flags[i];
-                op->comps.min[i]   = prev.min[i];
-                op->comps.max[i]   = prev.max[i];
-            }
 
             if (op->rw.filter.op) {
                 const SwsComps prev = op->comps;

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

Reply via email to