[FFmpeg-cvslog] libavutil/opencl: fixed uninitialized var warning

dsmudhar git at videolan.org
Mon May 23 13:44:25 CEST 2016


ffmpeg | branch: master | dsmudhar <ds.mudhar at gmail.com> | Sun May 22 06:47:27 2016 +0530| [6b852a3fd94210779491d51441a3439831841a55] | committer: Michael Niedermayer

libavutil/opencl: fixed uninitialized var warning

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6b852a3fd94210779491d51441a3439831841a55
---

 libavutil/opencl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/opencl.c b/libavutil/opencl.c
index 08b5034..af35770 100644
--- a/libavutil/opencl.c
+++ b/libavutil/opencl.c
@@ -445,7 +445,7 @@ cl_program av_opencl_compile(const char *program_name, const char *build_opts)
     int i;
     cl_int status, build_status;
     int kernel_code_idx = 0;
-    const char *kernel_source;
+    const char *kernel_source = NULL;
     size_t kernel_code_len;
     char* ptr = NULL;
     cl_program program = NULL;



More information about the ffmpeg-cvslog mailing list