diff options
author | Mark Thompson <sw@jkqxz.net> | 2018-03-19 22:52:51 +0000 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2018-03-22 23:14:14 +0000 |
commit | 0568af521ef3eed3e811fb4bebff050b559dbf53 (patch) | |
tree | 5a9c9056a1a48abd6031c17395f2a37ae50766a2 /libavfilter/vf_overlay_opencl.c | |
parent | 2a1542d105dc3161516e34eef77bcd64aa72cab4 (diff) | |
download | ffmpeg-0568af521ef3eed3e811fb4bebff050b559dbf53.tar.gz |
lavfi/opencl: Avoid deprecation warnings when built with post-1.2 headers
The intended target is OpenCL 1.2, so disable warnings for APIs deprecated
after that. This primarily applies to clCreateCommandQueue(), we can't use
the replacement clCreateCommandQueueWithProperties() because it was
introduced in OpenCL 2.0.
Also remove some unnecessary includes from overlay and program filters so
that the define is available at the right moment.
Diffstat (limited to 'libavfilter/vf_overlay_opencl.c')
-rw-r--r-- | libavfilter/vf_overlay_opencl.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libavfilter/vf_overlay_opencl.c b/libavfilter/vf_overlay_opencl.c index 16e10f4371..b43050df58 100644 --- a/libavfilter/vf_overlay_opencl.c +++ b/libavfilter/vf_overlay_opencl.c @@ -16,16 +16,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "libavutil/avassert.h" -#include "libavutil/buffer.h" -#include "libavutil/common.h" -#include "libavutil/hwcontext.h" -#include "libavutil/hwcontext_opencl.h" #include "libavutil/log.h" -#include "libavutil/mathematics.h" #include "libavutil/mem.h" -#include "libavutil/pixdesc.h" #include "libavutil/opt.h" +#include "libavutil/pixdesc.h" #include "avfilter.h" #include "framesync.h" |