swscale/ops: remove unneeded conditional on describe_comp_flags

next->comps.unused[] is redundant with SWS_COMP_GARBAGE now.

Signed-off-by: Niklas Haas <git@haasn.dev>
This commit is contained in:
Niklas Haas
2026-03-28 17:08:48 +01:00
committed by Niklas Haas
parent 804041045e
commit ff397a327a

View File

@@ -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);