aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorJun Zhao <mypopydev@gmail.com>2018-05-30 08:13:13 +0800
committerJun Zhao <jun.zhao@intel.com>2018-06-07 19:38:58 +0800
commit3bab7b70da9705031bfc23d9fd15dc49af967055 (patch)
tree366eae66b34e3efb71e926b66766486305dc9bee /libavutil
parent47a818323ba0fea16667031e0788756960a308ea (diff)
downloadffmpeg-3bab7b70da9705031bfc23d9fd15dc49af967055.tar.gz
lavu/hwcontext_opecl: fix the build warning
fix the build warning when use Portable Computing Language (pocl). Signed-off-by: Jun Zhao <mypopydev@gmail.com>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/hwcontext_opencl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/hwcontext_opencl.c b/libavutil/hwcontext_opencl.c
index e08d7bcb9b..07458c2fb1 100644
--- a/libavutil/hwcontext_opencl.c
+++ b/libavutil/hwcontext_opencl.c
@@ -2810,7 +2810,7 @@ static int opencl_map_from(AVHWFramesContext *hwfc, AVFrame *dst,
static int opencl_map_to(AVHWFramesContext *hwfc, AVFrame *dst,
const AVFrame *src, int flags)
{
- OpenCLDeviceContext *priv = hwfc->device_ctx->internal->priv;
+ av_unused OpenCLDeviceContext *priv = hwfc->device_ctx->internal->priv;
av_assert0(dst->format == AV_PIX_FMT_OPENCL);
switch (src->format) {
#if HAVE_OPENCL_DRM_BEIGNET
@@ -2851,7 +2851,7 @@ static int opencl_map_to(AVHWFramesContext *hwfc, AVFrame *dst,
static int opencl_frames_derive_to(AVHWFramesContext *dst_fc,
AVHWFramesContext *src_fc, int flags)
{
- OpenCLDeviceContext *priv = dst_fc->device_ctx->internal->priv;
+ av_unused OpenCLDeviceContext *priv = dst_fc->device_ctx->internal->priv;
switch (src_fc->device_ctx->type) {
#if HAVE_OPENCL_DRM_BEIGNET
case AV_HWDEVICE_TYPE_DRM: