mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-22 05:40:27 +08:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user