lavu/opencl_internal: use av_opencl_errstr
authorhighgod0401 <highgod0401@gmail.com>
Mon, 6 May 2013 01:46:44 +0000 (09:46 +0800)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 6 May 2013 10:08:04 +0000 (12:08 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/opencl_internal.c

index f15c934..3d996ab 100644 (file)
@@ -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;
         }