From 41aa19999858f6517fc1a82dafc726182d2a8b19 Mon Sep 17 00:00:00 2001 From: highgod0401 Date: Mon, 6 May 2013 09:46:44 +0800 Subject: [PATCH] lavu/opencl_internal: use av_opencl_errstr Signed-off-by: Michael Niedermayer --- libavutil/opencl_internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/opencl_internal.c b/libavutil/opencl_internal.c index f15c934f3e..3d996ab006 100644 --- a/libavutil/opencl_internal.c +++ b/libavutil/opencl_internal.c @@ -47,7 +47,7 @@ int ff_opencl_set_parameter(FFOpenclParam *opencl_param, ...) } status = clSetKernelArg(opencl_param->kernel, opencl_param->param_num, param_size, param); if (status != CL_SUCCESS) { - av_log(opencl_param->ctx, AV_LOG_ERROR, "Cannot set kernel argument: %d\n", status); + av_log(opencl_param->ctx, AV_LOG_ERROR, "Cannot set kernel argument: %s\n", av_opencl_errstr(status)); ret = AVERROR_EXTERNAL; goto end; }