This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit a02860a2924270f94502e74419af3de5f66e2ba8 Author: Niklas Haas <[email protected]> AuthorDate: Fri Jan 9 12:52:45 2026 +0100 Commit: Niklas Haas <[email protected]> CommitDate: Thu Feb 19 19:44:46 2026 +0000 swscale/optimizer: don't assume op lists start with read This was just a minor/pointless optimization in the first place. We keep the skip on the last component because we can never commute that past the end of the list. Sponsored-by: Sovereign Tech Fund Signed-off-by: Niklas Haas <[email protected]> --- libswscale/ops_optimizer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libswscale/ops_optimizer.c b/libswscale/ops_optimizer.c index 9e6817ffcc..bcdeb19be5 100644 --- a/libswscale/ops_optimizer.c +++ b/libswscale/ops_optimizer.c @@ -576,7 +576,7 @@ retry: } /* Push clears to the back to void any unused components */ - for (int n = 1; n < ops->num_ops - 1; n++) { /* exclude READ/WRITE */ + for (int n = 0; n < ops->num_ops - 1; n++) { SwsOp *op = &ops->ops[n]; SwsOp *next = &ops->ops[n + 1]; @@ -593,7 +593,7 @@ retry: /* Apply any remaining preferential re-ordering optimizations; do these * last because they are more likely to block other optimizations if done * too aggressively */ - for (int n = 1; n < ops->num_ops - 1; n++) { /* exclude READ/WRITE */ + for (int n = 0; n < ops->num_ops - 1; n++) { SwsOp *op = &ops->ops[n]; SwsOp *prev = &ops->ops[n - 1]; SwsOp *next = &ops->ops[n + 1]; _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
