avisynth: Cast to the right type when loading avisynth library functions
authorDiego Biurrun <diego@biurrun.de>
Thu, 24 Nov 2016 11:46:30 +0000 (12:46 +0100)
committerDiego Biurrun <diego@biurrun.de>
Tue, 29 Nov 2016 12:13:35 +0000 (13:13 +0100)
Fixes a number of related warnings.

libavformat/avisynth.c

index fd5f323..d3b3ec4 100644 (file)
@@ -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;