diff options
author | Diego Biurrun <diego@biurrun.de> | 2016-11-24 12:46:30 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-11-29 13:13:35 +0100 |
commit | 239d02eff3ffe9f7d40caa21dde50fb4a0e94c24 (patch) | |
tree | ab39040c8187f7b3b7b2f68ffff3346b94e5e84c /libavformat | |
parent | 3fe2a01df7f2c193805809f57b61d79607572351 (diff) |
avisynth: Cast to the right type when loading avisynth library functions
Fixes a number of related warnings.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/avisynth.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c index fd5f323e13..d3b3ec478e 100644 --- a/libavformat/avisynth.c +++ b/libavformat/avisynth.c @@ -127,7 +127,8 @@ static av_cold int avisynth_load_library(void) return AVERROR_UNKNOWN; #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) \ goto fail; |