Преглед на файлове

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.
Mark Thompson преди 7 години
родител
ревизия
9313422dfc
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      libavutil/hwcontext_opencl.c

+ 2 - 0
libavutil/hwcontext_opencl.c

@@ -16,6 +16,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
  */
 
 
+#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
+
 #include <string.h>
 #include <string.h>
 
 
 #include "config.h"
 #include "config.h"