[FFmpeg-devel] [PATCH] opencl: Fix compilation with threading disabled

James Almer jamrial at gmail.com
Wed Apr 10 10:17:15 CEST 2013


Fixes ticket #2448

Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavutil/opencl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavutil/opencl.c b/libavutil/opencl.c
index d0f75b9..00fb99b 100644
--- a/libavutil/opencl.c
+++ b/libavutil/opencl.c
@@ -269,6 +269,7 @@ void av_opencl_release_kernel(AVOpenCLKernelEnv *env)
     gpu_env.kernel_count--;
 end:
     UNLOCK_OPENCL
+    return;
 }
 
 static int init_opencl_env(GPUEnv *gpu_env, AVOpenCLExternalEnv *ext_opencl_env)
@@ -598,6 +599,7 @@ void av_opencl_uninit(void)
     av_freep(&(gpu_env.device_ids));
 end:
     UNLOCK_OPENCL
+    return;
 }
 
 int av_opencl_buffer_create(cl_mem *cl_buf, size_t cl_buf_size, int flags, void *host_ptr)
-- 
1.8.1.5



More information about the ffmpeg-devel mailing list