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>
This commit is contained in:
Ruiling Song 2018-06-06 23:31:44 +08:00 committed by Mark Thompson
parent c8de4448bd
commit e4006a474f

View File

@ -141,8 +141,9 @@ typedef struct OpenCLFramesContext {
} OpenCLFramesContext; } OpenCLFramesContext;
static void opencl_error_callback(const char *errinfo, static void CL_CALLBACK opencl_error_callback(const char *errinfo,
const void *private_info, size_t cb, const void *private_info,
size_t cb,
void *user_data) void *user_data)
{ {
AVHWDeviceContext *ctx = user_data; AVHWDeviceContext *ctx = user_data;