diff mbox

[FFmpeg-devel,3/3] hwcontext_opencl: Avoid deprecation warnings when built with post-1.2 headers

Message ID 20180319230531.7079-3-sw@jkqxz.net
State Accepted
Commit 9313422dfc8d13fdd7d58e9ed04dfff61d26b7f2
Headers show

Commit Message

Mark Thompson March 19, 2018, 11:05 p.m. UTC
Matching the previous commit.  This is not applied to the installed header
because it could incorrectly suppress the warning inside user programs.
---
 libavutil/hwcontext_opencl.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

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"