Commit cebe06a0 authored by Y.C. Liu's avatar Y.C. Liu Committed by Michael Niedermayer

avutil/opencl: fix a segmentfault in libavutil/opencl.c

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6e5cce1c
......@@ -169,7 +169,7 @@ static const OpenclErrorMsg opencl_err_msg[] = {
const char *av_opencl_errstr(cl_int status)
{
int i;
for (i = 0; i < sizeof(opencl_err_msg); i++) {
for (i = 0; i < FF_ARRAY_ELEMS(opencl_err_msg); i++) {
if (opencl_err_msg[i].err_code == status)
return opencl_err_msg[i].err_str;
}
......
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