OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d712a5c
)
cmdutils_opencl: Fix read of uinitialized cl_mem
author
Michael Niedermayer
<michael@niedermayer.cc>
Mon, 17 Apr 2017 01:25:13 +0000
(
03:25
+0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Thu, 11 May 2017 11:02:12 +0000
(13:02 +0200)
Fixes CID1396856, CID1396860, CID1396861
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
cmdutils_opencl.c
patch
|
blob
|
history
diff --git
a/cmdutils_opencl.c
b/cmdutils_opencl.c
index
f141d1e
..
906aef4
100644
(file)
--- 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};