From 7fb1e0832c25943a77a73672bb9f14e0ab81e9fb Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Mon, 9 Mar 2026 17:46:10 +0100 Subject: [PATCH] swscale/ops_dispatch: move ENOTSUP error to ff_sws_compile_pass() Or else this might false-positive when we retry compilation after subpass splitting. Sponsored-by: Sovereign Tech Fund Signed-off-by: Niklas Haas --- libswscale/ops_dispatch.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libswscale/ops_dispatch.c b/libswscale/ops_dispatch.c index 7874f3c494..239b2e3d7b 100644 --- a/libswscale/ops_dispatch.c +++ b/libswscale/ops_dispatch.c @@ -90,8 +90,6 @@ int ff_sws_ops_compile(SwsContext *ctx, const SwsOpList *ops, SwsCompiledOp *out return 0; } - av_log(ctx, AV_LOG_WARNING, "No backend found for operations:\n"); - ff_sws_op_list_print(ctx, AV_LOG_WARNING, AV_LOG_TRACE, ops); return AVERROR(ENOTSUP); } @@ -401,6 +399,10 @@ int ff_sws_compile_pass(SwsGraph *graph, SwsOpList **pops, int flags, ret = compile(graph, ops, input, output); out: + if (ret == AVERROR(ENOTSUP)) { + av_log(ctx, AV_LOG_WARNING, "No backend found for operations:\n"); + ff_sws_op_list_print(ctx, AV_LOG_WARNING, AV_LOG_TRACE, ops); + } ff_sws_op_list_free(&ops); *pops = NULL; return ret;