summaryrefslogtreecommitdiff
path: root/libavformat/avisynth.c
diff options
context:
space:
mode:
authorStephen Hutchinson <qyot27@gmail.com>2019-03-30 17:46:32 -0400
committerGyan Doshi <ffmpeg@gyani.pro>2019-05-04 12:03:24 +0530
commita5387f983dcfd01cb74ab33e34d714a1d882184b (patch)
treeb4ab393be06ba9893f31e0160aea8ada9b7abccb /libavformat/avisynth.c
parentd19f8e711c06287006e680c1bd417ffe52074a6b (diff)
avisynth: adapt 239d02eff3ffe9f7d40caa21dde50fb4a0e94c24 to dlsym
This commit was merged in a couple years ago as a no-op because we had already switched from GetProcAddress to dlsym some time before that. However, not applying the actual cast causes warnings about FARPROC and when attempting to build FFmpeg in MSVC with AviSynth-GCC 32-bit compatibility, those FARPROC warnings turn into FARPROC errors.
Diffstat (limited to 'libavformat/avisynth.c')
-rw-r--r--libavformat/avisynth.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
index 2181510c2f..5dfe94ae0c 100644
--- a/libavformat/avisynth.c
+++ b/libavformat/avisynth.c
@@ -123,7 +123,8 @@ static av_cold int avisynth_load_library(void)
return AVERROR_UNKNOWN;
#define LOAD_AVS_FUNC(name, continue_on_fail) \
- avs_library.name = dlsym(avs_library.library, #name); \
+ avs_library.name = (name ## _func) \
+ dlsym(avs_library.library, #name); \
if (!continue_on_fail && !avs_library.name) \
goto fail;