diff options
author | Ruiling Song <ruiling.song@intel.com> | 2018-06-06 23:31:44 +0800 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2018-06-06 23:13:00 +0100 |
commit | e4006a474f689ef9534448d3382d220c62b413b6 (patch) | |
tree | 5c55b4c2e7092c367213fb5fa5ae5d40a283fc90 | |
parent | c8de4448bda10a1782af8dbf2fab76d0be7c5a53 (diff) | |
download | ffmpeg-e4006a474f689ef9534448d3382d220c62b413b6.tar.gz |
lavu: add calling convention for OpenCL callback.
This fix a build error on Windows:
C2440: connot convert from 'void (__cdecl *) (...)' to 'void (__stdcall *)(...)'.
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
-rw-r--r-- | libavutil/hwcontext_opencl.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavutil/hwcontext_opencl.c b/libavutil/hwcontext_opencl.c index 43b5c5ae0c..e08d7bcb9b 100644 --- a/libavutil/hwcontext_opencl.c +++ b/libavutil/hwcontext_opencl.c @@ -141,9 +141,10 @@ typedef struct OpenCLFramesContext { } OpenCLFramesContext; -static void opencl_error_callback(const char *errinfo, - const void *private_info, size_t cb, - void *user_data) +static void CL_CALLBACK opencl_error_callback(const char *errinfo, + const void *private_info, + size_t cb, + void *user_data) { AVHWDeviceContext *ctx = user_data; av_log(ctx, AV_LOG_ERROR, "OpenCL error: %s\n", errinfo); |