summaryrefslogtreecommitdiff
path: root/libavcodec/videotoolboxenc.c
diff options
context:
space:
mode:
authorRick Kern <kernrj@gmail.com>2017-03-01 10:39:13 -0500
committerRick Kern <kernrj@gmail.com>2017-03-01 10:43:08 -0500
commit70ebc05bce51215cd0857194d6cabf1e4d1440fb (patch)
treee9fbba7c649836cca24e41bf458f6fce921c08c8 /libavcodec/videotoolboxenc.c
parent7b5ff7d57355dc608f0fd86e3ab32a2fda65e752 (diff)
lavc/videotoolboxenc: fix symbol linking
Removes explicit reference to symbols and fixes dereferencing issue. Signed-off-by: Rick Kern <kernrj@gmail.com>
Diffstat (limited to 'libavcodec/videotoolboxenc.c')
-rw-r--r--libavcodec/videotoolboxenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c
index fe64250f29..005f5d6325 100644
--- a/libavcodec/videotoolboxenc.c
+++ b/libavcodec/videotoolboxenc.c
@@ -74,11 +74,11 @@ static struct{
#define GET_SYM(symbol, defaultVal) \
do{ \
- CFStringRef cfstr = dlsym(RTLD_DEFAULT, #symbol); \
+ CFStringRef cfstr = *(CFStringRef*)dlsym(RTLD_DEFAULT, #symbol); \
if(!cfstr) \
compat_keys.symbol = CFSTR(defaultVal); \
else \
- compat_keys.symbol = symbol; \
+ compat_keys.symbol = cfstr; \
}while(0)
static pthread_once_t once_ctrl = PTHREAD_ONCE_INIT;