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

Git pushed a commit to branch master
in repository ffmpeg.

commit ff397a327a577faa7774a71ca755fd66c9a7ff6b
Author:     Niklas Haas <[email protected]>
AuthorDate: Sat Mar 28 17:08:48 2026 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Sun Mar 29 09:39:09 2026 +0000

    swscale/ops: remove unneeded conditional on describe_comp_flags
    
    next->comps.unused[] is redundant with SWS_COMP_GARBAGE now.
    
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/ops.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/libswscale/ops.c b/libswscale/ops.c
index d6c9b16bd0..0a2a991833 100644
--- a/libswscale/ops.c
+++ b/libswscale/ops.c
@@ -920,14 +920,13 @@ void ff_sws_op_list_print(void *log, int lev, int 
lev_extra,
 
     for (int i = 0; i < ops->num_ops; i++) {
         const SwsOp *op   = &ops->ops[i];
-        const SwsOp *next = i + 1 < ops->num_ops ? &ops->ops[i + 1] : op;
         av_bprint_clear(&bp);
         av_bprintf(&bp, "  [%3s %c%c%c%c] ",
                    ff_sws_pixel_type_name(op->type),
-                   next->comps.unused[0] ? 'X' : 
describe_comp_flags(op->comps.flags[0]),
-                   next->comps.unused[1] ? 'X' : 
describe_comp_flags(op->comps.flags[1]),
-                   next->comps.unused[2] ? 'X' : 
describe_comp_flags(op->comps.flags[2]),
-                   next->comps.unused[3] ? 'X' : 
describe_comp_flags(op->comps.flags[3]));
+                   describe_comp_flags(op->comps.flags[0]),
+                   describe_comp_flags(op->comps.flags[1]),
+                   describe_comp_flags(op->comps.flags[2]),
+                   describe_comp_flags(op->comps.flags[3]));
 
         ff_sws_op_desc(&bp, op);
 

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

Reply via email to