Commit e215cb5e authored by highgod0401's avatar highgod0401 Committed by Michael Niedermayer

lavfi/unsharp_opencl: use av_opencl_errstr

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 41aa1999
...@@ -189,7 +189,7 @@ int ff_opencl_apply_unsharp(AVFilterContext *ctx, AVFrame *in, AVFrame *out) ...@@ -189,7 +189,7 @@ int ff_opencl_apply_unsharp(AVFilterContext *ctx, AVFrame *in, AVFrame *out)
unsharp->opencl_ctx.kernel_env.kernel, 1, NULL, unsharp->opencl_ctx.kernel_env.kernel, 1, NULL,
&global_work_size, NULL, 0, NULL, NULL); &global_work_size, NULL, 0, NULL, NULL);
if (status != CL_SUCCESS) { if (status != CL_SUCCESS) {
av_log(ctx, AV_LOG_ERROR, "OpenCL run kernel error occurred: %d\n", status); av_log(ctx, AV_LOG_ERROR, "OpenCL run kernel error occurred: %s\n", av_opencl_errstr(status));
return AVERROR_EXTERNAL; return AVERROR_EXTERNAL;
} }
clFinish(unsharp->opencl_ctx.kernel_env.command_queue); clFinish(unsharp->opencl_ctx.kernel_env.command_queue);
......
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