mirror of https://git.ffmpeg.org/ffmpeg.git
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