swscale/ops_optimizer: don't commute clear with itself

These would normally be merged, not swapped.
This commit is contained in:
Niklas Haas
2025-12-15 18:15:24 +01:00
committed by Niklas Haas
parent b934dd1d4b
commit c51c63058c

View File

@@ -50,7 +50,6 @@ static bool op_commute_clear(SwsOp *op, SwsOp *next)
case SWS_OP_MIN:
case SWS_OP_MAX:
case SWS_OP_SCALE:
case SWS_OP_CLEAR:
case SWS_OP_READ:
case SWS_OP_SWIZZLE:
ff_sws_apply_op_q(next, op->c.q4);
@@ -61,6 +60,7 @@ static bool op_commute_clear(SwsOp *op, SwsOp *next)
case SWS_OP_LINEAR:
case SWS_OP_PACK:
case SWS_OP_UNPACK:
case SWS_OP_CLEAR:
return false;
case SWS_OP_TYPE_NB:
break;