Commit d712a5cd authored by Michael Niedermayer's avatar Michael Niedermayer

cmdutils_opencl: Fix read of uninitialized pointer

Fixes: CID1396856
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent ad2296ab
...@@ -129,7 +129,7 @@ static int64_t run_opencl_bench(AVOpenCLExternalEnv *ext_opencl_env) ...@@ -129,7 +129,7 @@ static int64_t run_opencl_bench(AVOpenCLExternalEnv *ext_opencl_env)
cl_int status; cl_int status;
size_t kernel_len; size_t kernel_len;
char *inbuf; char *inbuf;
int *mask; int *mask = NULL;
int buf_size = width * height * sizeof(char); int buf_size = width * height * sizeof(char);
int mask_size = sizeof(uint32_t) * 128; int mask_size = sizeof(uint32_t) * 128;
......
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