[FFmpeg-cvslog] opencl: Force the use of 1.2 APIs
Timothy Gu
git at videolan.org
Sat Oct 17 10:16:58 CEST 2015
ffmpeg | branch: master | Timothy Gu <timothygu99 at gmail.com> | Mon Oct 12 02:50:18 2015 -0700| [801eca1372dd7e4bdc25271877cda06c0674f76e] | committer: Timothy Gu
opencl: Force the use of 1.2 APIs
Silences warnings regarding `clCreateCommandQueue` being deprecated.
Only a very limited number of products support 2.0. Since the
replacement API (`clCreateCommandQueueWithProperties`) is only available
in 2.0, we should not update it just yet.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=801eca1372dd7e4bdc25271877cda06c0674f76e
---
libavutil/opencl.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavutil/opencl.h b/libavutil/opencl.h
index e423e55..168461d 100644
--- a/libavutil/opencl.h
+++ b/libavutil/opencl.h
@@ -32,6 +32,7 @@
#ifndef LIBAVUTIL_OPENCL_H
#define LIBAVUTIL_OPENCL_H
+#define CL_USE_DEPRECATED_OPENCL_1_2_APIS 1
#ifdef __APPLE__
#include <OpenCL/cl.h>
#else
More information about the ffmpeg-cvslog
mailing list