ffmpeg | branch: master | Rick Kern <[email protected]> | Wed Mar  1 10:39:13 
2017 -0500| [70ebc05bce51215cd0857194d6cabf1e4d1440fb] | committer: Rick Kern

lavc/videotoolboxenc: fix symbol linking

Removes explicit reference to symbols and fixes dereferencing issue.

Signed-off-by: Rick Kern <[email protected]>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=70ebc05bce51215cd0857194d6cabf1e4d1440fb
---

 libavcodec/videotoolboxenc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c
index fe64250..005f5d6 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;

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to