Commit 3bab7b70 authored by Jun Zhao's avatar Jun Zhao Committed by Jun Zhao

lavu/hwcontext_opecl: fix the build warning

fix the build warning when use Portable Computing Language (pocl).
Signed-off-by: 's avatarJun Zhao <mypopydev@gmail.com>
parent 47a81832
...@@ -2810,7 +2810,7 @@ static int opencl_map_from(AVHWFramesContext *hwfc, AVFrame *dst, ...@@ -2810,7 +2810,7 @@ static int opencl_map_from(AVHWFramesContext *hwfc, AVFrame *dst,
static int opencl_map_to(AVHWFramesContext *hwfc, AVFrame *dst, static int opencl_map_to(AVHWFramesContext *hwfc, AVFrame *dst,
const AVFrame *src, int flags) 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); av_assert0(dst->format == AV_PIX_FMT_OPENCL);
switch (src->format) { switch (src->format) {
#if HAVE_OPENCL_DRM_BEIGNET #if HAVE_OPENCL_DRM_BEIGNET
...@@ -2851,7 +2851,7 @@ static int opencl_map_to(AVHWFramesContext *hwfc, AVFrame *dst, ...@@ -2851,7 +2851,7 @@ static int opencl_map_to(AVHWFramesContext *hwfc, AVFrame *dst,
static int opencl_frames_derive_to(AVHWFramesContext *dst_fc, static int opencl_frames_derive_to(AVHWFramesContext *dst_fc,
AVHWFramesContext *src_fc, int flags) 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) { switch (src_fc->device_ctx->type) {
#if HAVE_OPENCL_DRM_BEIGNET #if HAVE_OPENCL_DRM_BEIGNET
case AV_HWDEVICE_TYPE_DRM: case AV_HWDEVICE_TYPE_DRM:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment