[FFmpeg-cvslog] lavfi/unsharp_opencl: use av_opencl_errstr

highgod0401 git at videolan.org
Mon May 6 12:17:08 CEST 2013


ffmpeg | branch: master | highgod0401 <highgod0401 at gmail.com> | Mon May  6 09:54:28 2013 +0800| [e215cb5e9670f8149d8486ddc9f09277fc0ba8cc] | committer: Michael Niedermayer

lavfi/unsharp_opencl: use av_opencl_errstr

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e215cb5e9670f8149d8486ddc9f09277fc0ba8cc
---

 libavfilter/unsharp_opencl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/unsharp_opencl.c b/libavfilter/unsharp_opencl.c
index d0c25ee..91a1292 100644
--- a/libavfilter/unsharp_opencl.c
+++ b/libavfilter/unsharp_opencl.c
@@ -189,7 +189,7 @@ int ff_opencl_apply_unsharp(AVFilterContext *ctx, AVFrame *in, AVFrame *out)
                                     unsharp->opencl_ctx.kernel_env.kernel, 1, NULL,
                                     &global_work_size, NULL, 0, NULL, NULL);
     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;
     }
     clFinish(unsharp->opencl_ctx.kernel_env.command_queue);



More information about the ffmpeg-cvslog mailing list