This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 409b870bd6cd894910d3ae23a1c0858100b33071 Author: Niklas Haas <[email protected]> AuthorDate: Sat Jun 20 16:17:58 2026 +0200 Commit: Niklas Haas <[email protected]> CommitDate: Tue Jun 23 11:48:13 2026 +0000 swscale/tests/sws_ops: only print actually compiled ops lists We already have the unoptimized reference ops; printing each intermediate stage here is just noise that makes this file harder to scroll through IMO. Sponsored-by: Sovereign Tech Fund Signed-off-by: Niklas Haas <[email protected]> --- libswscale/tests/sws_ops.c | 15 +++++++-------- tests/ref/fate/sws-ops-list | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/libswscale/tests/sws_ops.c b/libswscale/tests/sws_ops.c index a247eb3f76..ce7672040b 100644 --- a/libswscale/tests/sws_ops.c +++ b/libswscale/tests/sws_ops.c @@ -34,20 +34,19 @@ static int pass_idx; static int print_ops(SwsContext *ctx, const SwsOpList *ops, SwsCompiledOp *out) { - if (pass_idx > 0) - av_log(NULL, AV_LOG_INFO, " Sub-pass #%d:\n", pass_idx); - - ff_sws_op_list_print(NULL, AV_LOG_INFO, AV_LOG_INFO, ops); - SwsUOpList *uops = ff_sws_uop_list_alloc(); if (!uops) return AVERROR(ENOMEM); int ret = ff_sws_ops_translate(ctx, ops, 0, uops); - if (ret == AVERROR(ENOTSUP)) { - av_log(NULL, AV_LOG_INFO, " Retrying with split passes:\n"); + if (ret == AVERROR(ENOTSUP)) goto fail; - } else if (ret < 0) { + + if (pass_idx > 0) + av_log(NULL, AV_LOG_INFO, " Sub-pass #%d:\n", pass_idx); + + ff_sws_op_list_print(NULL, AV_LOG_INFO, AV_LOG_INFO, ops); + if (ret < 0) { av_log(NULL, AV_LOG_ERROR, "Error translating ops: %s\n", av_err2str(ret)); goto fail; } diff --git a/tests/ref/fate/sws-ops-list b/tests/ref/fate/sws-ops-list index 89fd98ade9..ee37afb811 100644 --- a/tests/ref/fate/sws-ops-list +++ b/tests/ref/fate/sws-ops-list @@ -1 +1 @@ -6e80d07a48c056bfbef85a25e4679693 +f14d6b179843b86854e9f80b599b5d86 _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
