mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avisynth: Cast to the right type when loading avisynth library functions
Fixes a number of related warnings.
This commit is contained in:
parent
3fe2a01df7
commit
239d02eff3
@ -127,7 +127,8 @@ static av_cold int avisynth_load_library(void)
|
|||||||
return AVERROR_UNKNOWN;
|
return AVERROR_UNKNOWN;
|
||||||
|
|
||||||
#define LOAD_AVS_FUNC(name, continue_on_fail) \
|
#define LOAD_AVS_FUNC(name, continue_on_fail) \
|
||||||
avs_library.name = GetProcAddress(avs_library.library, #name); \
|
avs_library.name = (name ## _func) \
|
||||||
|
GetProcAddress(avs_library.library, #name); \
|
||||||
if (!continue_on_fail && !avs_library.name) \
|
if (!continue_on_fail && !avs_library.name) \
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user