This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit dacbf080f3f6d30786c27c1b146fc8e4af516947 Author: Niklas Haas <[email protected]> AuthorDate: Sat Apr 4 20:05:54 2026 +0200 Commit: Niklas Haas <[email protected]> CommitDate: Fri May 15 18:53:05 2026 +0200 swscale/ops_chain: simplify ff_sws_op_compile_tables() signature This no longer accesses prev/next as a result of the `unused` removal, so the signature can be simplified to just take the op directly. Signed-off-by: Niklas Haas <[email protected]> --- libswscale/ops_backend.c | 2 +- libswscale/ops_chain.c | 3 +-- libswscale/ops_chain.h | 2 +- libswscale/x86/ops.c | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/libswscale/ops_backend.c b/libswscale/ops_backend.c index 62b6262a1f..07919539e5 100644 --- a/libswscale/ops_backend.c +++ b/libswscale/ops_backend.c @@ -80,7 +80,7 @@ static int compile(SwsContext *ctx, SwsOpList *ops, SwsCompiledOp *out) for (int i = 0; i < ops->num_ops; i++) { ret = ff_sws_op_compile_tables(ctx, tables, FF_ARRAY_ELEMS(tables), - ops, i, SWS_BLOCK_SIZE, chain); + &ops->ops[i], SWS_BLOCK_SIZE, chain); if (ret < 0) { av_log(ctx, AV_LOG_TRACE, "Failed to compile op %d\n", i); ff_sws_op_chain_free(chain); diff --git a/libswscale/ops_chain.c b/libswscale/ops_chain.c index afafa64cbc..8b32da7eeb 100644 --- a/libswscale/ops_chain.c +++ b/libswscale/ops_chain.c @@ -178,10 +178,9 @@ static int op_match(const SwsOp *op, const SwsOpEntry *entry) } int ff_sws_op_compile_tables(SwsContext *ctx, const SwsOpTable *const tables[], - int num_tables, SwsOpList *ops, int ops_index, + int num_tables, const SwsOp *op, const int block_size, SwsOpChain *chain) { - const SwsOp *op = &ops->ops[ops_index]; const unsigned cpu_flags = av_get_cpu_flags(); const SwsOpEntry *best = NULL; const SwsOpTable *best_table = NULL; diff --git a/libswscale/ops_chain.h b/libswscale/ops_chain.h index 9fe2c06613..dcd9a9fc74 100644 --- a/libswscale/ops_chain.h +++ b/libswscale/ops_chain.h @@ -169,7 +169,7 @@ struct SwsOpTable { * Returns 0 or a negative error code. */ int ff_sws_op_compile_tables(SwsContext *ctx, const SwsOpTable *const tables[], - int num_tables, SwsOpList *ops, int ops_index, + int num_tables, const SwsOp *op, const int block_size, SwsOpChain *chain); #endif diff --git a/libswscale/x86/ops.c b/libswscale/x86/ops.c index dd014b49ec..20369652cc 100644 --- a/libswscale/x86/ops.c +++ b/libswscale/x86/ops.c @@ -1016,7 +1016,7 @@ static int compile(SwsContext *ctx, SwsOpList *ops, SwsCompiledOp *out) } ret = ff_sws_op_compile_tables(ctx, tables, FF_ARRAY_ELEMS(tables), - ops, i, op_block_size, chain); + op, op_block_size, chain); if (ret < 0) { av_log(ctx, AV_LOG_TRACE, "Failed to compile op %d\n", i); ff_sws_op_chain_free(chain); _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
