mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
swscale/ops: simplify min/max range print check
This does come with a slight change in behavior, as we now don't print the range information in the case that the range is only known for *unused* components. However, in practice, that's already guaranteed by update_comps() stripping the range info explicitly in this case. Signed-off-by: Niklas Haas <git@haasn.dev>
This commit is contained in:
@@ -995,11 +995,10 @@ void ff_sws_op_list_print(void *log, int lev, int lev_extra,
|
||||
av_assert0(av_bprint_is_complete(&bp));
|
||||
av_log(log, lev, "%s\n", bp.str);
|
||||
|
||||
if (op->comps.min[0].den || op->comps.min[1].den ||
|
||||
op->comps.min[2].den || op->comps.min[3].den ||
|
||||
op->comps.max[0].den || op->comps.max[1].den ||
|
||||
op->comps.max[2].den || op->comps.max[3].den)
|
||||
{
|
||||
/* Only print value ranges if any are relevant */
|
||||
SwsCompMask range_mask = ff_sws_comp_mask_q4(op->comps.min) |
|
||||
ff_sws_comp_mask_q4(op->comps.max);
|
||||
if (range_mask & mask) {
|
||||
av_bprint_clear(&bp);
|
||||
av_bprintf(&bp, " min: ");
|
||||
print_q4(&bp, op->comps.min, mask);
|
||||
|
||||
Reference in New Issue
Block a user