diff options
author | Y.C. Liu <liuycsd@gmail.com> | 2014-04-22 22:24:22 +0800 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-25 05:29:21 +0200 |
commit | cebe06a0bf1989727ab2995a833ae6f8af1a7ac8 (patch) | |
tree | 51ab9e636afe96d8894c942da88b5144c20ff932 /libavutil/opencl.c | |
parent | 6e5cce1cbe54543563dc904bd76f96e192ce0f6b (diff) | |
download | ffmpeg-cebe06a0bf1989727ab2995a833ae6f8af1a7ac8.tar.gz |
avutil/opencl: fix a segmentfault in libavutil/opencl.c
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/opencl.c')
-rw-r--r-- | libavutil/opencl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/opencl.c b/libavutil/opencl.c index 142c6b0bf2..f67eb5e66d 100644 --- a/libavutil/opencl.c +++ b/libavutil/opencl.c @@ -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; } |