mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
lavc/videotoolboxenc: fix symbol linking
Removes explicit reference to symbols and fixes dereferencing issue. Signed-off-by: Rick Kern <kernrj@gmail.com>
This commit is contained in:
parent
7b5ff7d573
commit
70ebc05bce
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user