This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit c31f3926d1b75a8a13a7f7d1cc55b429993bf143 Author: Niklas Haas <[email protected]> AuthorDate: Mon Dec 15 17:57:22 2025 +0100 Commit: Niklas Haas <[email protected]> CommitDate: Sat Dec 20 13:52:45 2025 +0000 swscale/ops_optimizer: simplify loop slightly (cosmetic) We always `goto retry` whenever an optimization case is hit, so we don't need to defer the increment of `n`. --- libswscale/ops_optimizer.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libswscale/ops_optimizer.c b/libswscale/ops_optimizer.c index 3b57c76130..9d668fee74 100644 --- a/libswscale/ops_optimizer.c +++ b/libswscale/ops_optimizer.c @@ -501,7 +501,7 @@ retry: ff_sws_op_list_update_comps(ops); /* Apply all in-place optimizations (that do not re-order the list) */ - for (int n = 0; n < ops->num_ops;) { + for (int n = 0; n < ops->num_ops; n++) { SwsOp dummy = {0}; SwsOp *op = &ops->ops[n]; SwsOp *prev = n ? &ops->ops[n - 1] : &dummy; @@ -797,9 +797,6 @@ retry: break; } } - - /* No optimization triggered, move on to next operation */ - n++; } /* Push clears to the back to void any unused components */ _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
