summaryrefslogtreecommitdiff
path: root/libavfilter/vf_deshake_opencl.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-01-25 11:42:32 +0100
committerPaul B Mahol <onemda@gmail.com>2020-01-25 11:42:32 +0100
commit31350de9970a1bc827e3b155bb285fd974116a6f (patch)
tree18fa2b980b522e17a261b89115699bb409a0ab27 /libavfilter/vf_deshake_opencl.c
parent1ab302da6ef958f2344d2b6d88cc28f56c86b0a2 (diff)
avfilter/vf_deshake_opencl: silence warning about usage of uninitialized value
Diffstat (limited to 'libavfilter/vf_deshake_opencl.c')
-rw-r--r--libavfilter/vf_deshake_opencl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavfilter/vf_deshake_opencl.c b/libavfilter/vf_deshake_opencl.c
index c959f19475..c914a77d83 100644
--- a/libavfilter/vf_deshake_opencl.c
+++ b/libavfilter/vf_deshake_opencl.c
@@ -1128,7 +1128,7 @@ static int deshake_opencl_init(AVFilterContext *avctx)
AVFilterLink *inlink = avctx->inputs[0];
// Pointer to the host-side pattern buffer to be initialized and then copied
// to the GPU
- PointPair *pattern_host;
+ PointPair *pattern_host = NULL;
cl_int cle;
int err;
cl_ulong8 zeroed_ulong8;
@@ -1348,8 +1348,7 @@ static int deshake_opencl_init(AVFilterContext *avctx)
return 0;
fail:
- if (!pattern_host)
- av_freep(&pattern_host);
+ av_freep(&pattern_host);
return err;
}