mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-03-13 09:00:40 +08:00
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 <git@haasn.dev>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user