mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-01 18:21:04 +00: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) \
|
#define GET_SYM(symbol, defaultVal) \
|
||||||
do{ \
|
do{ \
|
||||||
CFStringRef cfstr = dlsym(RTLD_DEFAULT, #symbol); \
|
CFStringRef cfstr = *(CFStringRef*)dlsym(RTLD_DEFAULT, #symbol); \
|
||||||
if(!cfstr) \
|
if(!cfstr) \
|
||||||
compat_keys.symbol = CFSTR(defaultVal); \
|
compat_keys.symbol = CFSTR(defaultVal); \
|
||||||
else \
|
else \
|
||||||
compat_keys.symbol = symbol; \
|
compat_keys.symbol = cfstr; \
|
||||||
}while(0)
|
}while(0)
|
||||||
|
|
||||||
static pthread_once_t once_ctrl = PTHREAD_ONCE_INIT;
|
static pthread_once_t once_ctrl = PTHREAD_ONCE_INIT;
|
||||||
|
Loading…
Reference in New Issue
Block a user