summaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_deshake.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2013-04-03 12:52:38 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-04-03 12:52:38 +0200
commit6e90d9e2066ab35a72d4053de3e0cdc5a342ac67 (patch)
treeb9b9e0002da2b03f4c7247a82b489307d958c4a0 /libavfilter/vf_deshake.c
parentbf65752848ec5799c72e1c38c574fd88c917fbe1 (diff)
downloadffmpeg-streaming-6e90d9e2066ab35a72d4053de3e0cdc5a342ac67.zip
ffmpeg-streaming-6e90d9e2066ab35a72d4053de3e0cdc5a342ac67.tar.gz
vf_deshake: Reorder constant arguments in an if() statement.
Fixes compilation with clang on netbsd with --disable-optimizations. Tested-by: Paul B Mahol
Diffstat (limited to 'libavfilter/vf_deshake.c')
-rw-r--r--libavfilter/vf_deshake.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/vf_deshake.c b/libavfilter/vf_deshake.c
index ee6e474..c8b8775 100644
--- a/libavfilter/vf_deshake.c
+++ b/libavfilter/vf_deshake.c
@@ -370,7 +370,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
return AVERROR(EINVAL);
}
- if (deshake->opencl && CONFIG_OPENCL) {
+ if (CONFIG_OPENCL && deshake->opencl) {
deshake->transform = ff_opencl_transform;
ret = ff_opencl_deshake_init(ctx);
if (ret < 0)
@@ -415,7 +415,7 @@ static int config_props(AVFilterLink *link)
static av_cold void uninit(AVFilterContext *ctx)
{
DeshakeContext *deshake = ctx->priv;
- if (deshake->opencl && CONFIG_OPENCL) {
+ if (CONFIG_OPENCL && deshake->opencl) {
ff_opencl_deshake_uninit(ctx);
}
av_frame_free(&deshake->ref);
@@ -444,7 +444,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *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);
if (ret < 0)
return ret;
OpenPOWER on IntegriCloud