[FFmpeg-cvslog] lavu/hwcontext_opencl.h: fix build on macOS

Rodger Combs git at videolan.org
Tue Nov 28 08:24:24 EET 2017


ffmpeg | branch: master | Rodger Combs <rodger.combs at gmail.com> | Mon Nov 27 23:38:46 2017 -0600| [1204ce0b6371f5b51efdfe84d1b5aa5925809186] | committer: Rodger Combs

lavu/hwcontext_opencl.h: fix build on macOS

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

 libavutil/hwcontext_opencl.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavutil/hwcontext_opencl.h b/libavutil/hwcontext_opencl.h
index 8e34df44cd..ef54486c95 100644
--- a/libavutil/hwcontext_opencl.h
+++ b/libavutil/hwcontext_opencl.h
@@ -19,7 +19,11 @@
 #ifndef AVUTIL_HWCONTEXT_OPENCL_H
 #define AVUTIL_HWCONTEXT_OPENCL_H
 
+#ifdef __APPLE__
+#include <OpenCL/cl.h>
+#else
 #include <CL/cl.h>
+#endif
 
 #include "frame.h"
 



More information about the ffmpeg-cvslog mailing list