summaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2015-10-12 02:50:18 -0700
committerTimothy Gu <timothygu99@gmail.com>2015-10-17 01:16:50 -0700
commit801eca1372dd7e4bdc25271877cda06c0674f76e (patch)
tree59987ee1297e980b511195b9c02732db1f35c932 /libavutil
parent17c68933f44fc0bf8818b93bb0da1e9ebc5f058f (diff)
downloadffmpeg-streaming-801eca1372dd7e4bdc25271877cda06c0674f76e.zip
ffmpeg-streaming-801eca1372dd7e4bdc25271877cda06c0674f76e.tar.gz
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.
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/opencl.h1
1 files changed, 1 insertions, 0 deletions
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
OpenPOWER on IntegriCloud