Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-03-20 01:53:11 +0300
committerMark Thompson <sw@jkqxz.net>2018-03-23 02:14:30 +0300
commit9313422dfc8d13fdd7d58e9ed04dfff61d26b7f2 (patch)
tree8bb9d245c82a67a86f3f8b557368fb7daa438077 /libavutil/hwcontext_opencl.c
parent0568af521ef3eed3e811fb4bebff050b559dbf53 (diff)
hwcontext_opencl: Avoid deprecation warnings when built with post-1.2 headers
Matching the previous commit. This is not applied to the installed header because it could incorrectly suppress the warning inside user programs.
Diffstat (limited to 'libavutil/hwcontext_opencl.c')
-rw-r--r--libavutil/hwcontext_opencl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/hwcontext_opencl.c b/libavutil/hwcontext_opencl.c
index a725a491e2..f1d9d80f07 100644
--- a/libavutil/hwcontext_opencl.c
+++ b/libavutil/hwcontext_opencl.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
+
#include <string.h>
#include "config.h"