mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 18:49:58 +00:00
lavu/opencl_internal: use av_opencl_errstr
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
9a09a9fc43
commit
41aa199998
@ -47,7 +47,7 @@ int ff_opencl_set_parameter(FFOpenclParam *opencl_param, ...)
|
|||||||
}
|
}
|
||||||
status = clSetKernelArg(opencl_param->kernel, opencl_param->param_num, param_size, param);
|
status = clSetKernelArg(opencl_param->kernel, opencl_param->param_num, param_size, param);
|
||||||
if (status != CL_SUCCESS) {
|
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;
|
ret = AVERROR_EXTERNAL;
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user