[FFmpeg-cvslog] avisynth: Cast to the right type when loading avisynth library functions

Diego Biurrun git at videolan.org
Fri Apr 7 11:08:35 EEST 2017


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Thu Nov 24 12:46:30 2016 +0100| [239d02eff3ffe9f7d40caa21dde50fb4a0e94c24] | committer: Diego Biurrun

avisynth: Cast to the right type when loading avisynth library functions

Fixes a number of related warnings.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=239d02eff3ffe9f7d40caa21dde50fb4a0e94c24
---

 libavformat/avisynth.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
index fd5f323..d3b3ec4 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;
 



More information about the ffmpeg-cvslog mailing list