Commit 6e90d9e2 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

vf_deshake: Reorder constant arguments in an if() statement.

Fixes compilation with clang on netbsd with --disable-optimizations.

Tested-by: Paul B Mahol
parent bf657528
...@@ -370,7 +370,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args) ...@@ -370,7 +370,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
return AVERROR(EINVAL); return AVERROR(EINVAL);
} }
if (deshake->opencl && CONFIG_OPENCL) { if (CONFIG_OPENCL && deshake->opencl) {
deshake->transform = ff_opencl_transform; deshake->transform = ff_opencl_transform;
ret = ff_opencl_deshake_init(ctx); ret = ff_opencl_deshake_init(ctx);
if (ret < 0) if (ret < 0)
...@@ -415,7 +415,7 @@ static int config_props(AVFilterLink *link) ...@@ -415,7 +415,7 @@ static int config_props(AVFilterLink *link)
static av_cold void uninit(AVFilterContext *ctx) static av_cold void uninit(AVFilterContext *ctx)
{ {
DeshakeContext *deshake = ctx->priv; DeshakeContext *deshake = ctx->priv;
if (deshake->opencl && CONFIG_OPENCL) { if (CONFIG_OPENCL && deshake->opencl) {
ff_opencl_deshake_uninit(ctx); ff_opencl_deshake_uninit(ctx);
} }
av_frame_free(&deshake->ref); av_frame_free(&deshake->ref);
...@@ -444,7 +444,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *in) ...@@ -444,7 +444,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
} }
av_frame_copy_props(out, in); av_frame_copy_props(out, in);
if (deshake->opencl && CONFIG_OPENCL) { if (CONFIG_OPENCL && deshake->opencl) {
ret = ff_opencl_deshake_process_inout_buf(link->dst,in, out); ret = ff_opencl_deshake_process_inout_buf(link->dst,in, out);
if (ret < 0) if (ret < 0)
return ret; return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment