[FFmpeg-cvslog] avutil/opencl: fix a segmentfault in libavutil/opencl.c
Y.C. Liu
git at videolan.org
Fri Apr 25 05:30:44 CEST 2014
ffmpeg | branch: master | Y.C. Liu <liuycsd at gmail.com> | Tue Apr 22 22:24:22 2014 +0800| [cebe06a0bf1989727ab2995a833ae6f8af1a7ac8] | committer: Michael Niedermayer
avutil/opencl: fix a segmentfault in libavutil/opencl.c
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cebe06a0bf1989727ab2995a833ae6f8af1a7ac8
---
libavutil/opencl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/opencl.c b/libavutil/opencl.c
index 142c6b0..f67eb5e 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;
}
More information about the ffmpeg-cvslog
mailing list