aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-04-17 03:25:13 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-05-11 13:02:12 +0200
commit36cf42252152cf2c385c43a9053deac03ed2dcd9 (patch)
treee60b89559f04c4024a0b8a20d9c3fae56ec0b17e
parentd712a5cddbfc12e21384f97a291aa64ea7e8005f (diff)
downloadffmpeg-36cf42252152cf2c385c43a9053deac03ed2dcd9.tar.gz
cmdutils_opencl: Fix read of uinitialized cl_mem
Fixes CID1396856, CID1396860, CID1396861 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--cmdutils_opencl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdutils_opencl.c b/cmdutils_opencl.c
index f141d1e243..906aef4836 100644
--- a/cmdutils_opencl.c
+++ b/cmdutils_opencl.c
@@ -133,7 +133,7 @@ static int64_t run_opencl_bench(AVOpenCLExternalEnv *ext_opencl_env)
int buf_size = width * height * sizeof(char);
int mask_size = sizeof(uint32_t) * 128;
- cl_mem cl_mask, cl_inbuf, cl_outbuf;
+ cl_mem cl_mask = NULL, cl_inbuf = NULL, cl_outbuf = NULL;
cl_kernel kernel = NULL;
cl_program program = NULL;
size_t local_work_size_2d[2] = {16, 16};