Skip to content

Commit

Permalink
cmdutils_opencl: Fix read of uinitialized cl_mem
Browse files Browse the repository at this point in the history
Fixes CID1396856, CID1396860, CID1396861

Signed-off-by: Michael Niedermayer <[email protected]>
  • Loading branch information
michaelni committed May 11, 2017
1 parent d712a5c commit 36cf422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmdutils_opencl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 36cf422

Please sign in to comment.