mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-01-12 00:06:51 +08:00
swscale/ops_optimizer: don't commute clear with itself
These would normally be merged, not swapped.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user