mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-31 20:02:42 +00:00
fix dynamic loading of libfaad 2.6
Originally committed as revision 11606 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
cb077b7aa3
commit
dbbc573253
@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_LIBFAADBIN
|
#ifdef CONFIG_LIBFAADBIN
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
static const char* libfaadname = "libfaad.so.0";
|
static const char* libfaadname = "libfaad.so";
|
||||||
#else
|
#else
|
||||||
#define dlopen(a)
|
#define dlopen(a)
|
||||||
#define dlclose(a)
|
#define dlclose(a)
|
||||||
@ -235,7 +235,7 @@ static int faac_decode_init(AVCodecContext *avctx)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#define dfaac(a, b) \
|
#define dfaac(a, b) \
|
||||||
do { static const char* n = "faacDec" #a; \
|
do { static const char* n = AV_STRINGIFY(faacDec ## a); \
|
||||||
if ((s->faacDec ## a = b dlsym( s->handle, n )) == NULL) { err = n; break; } } while(0)
|
if ((s->faacDec ## a = b dlsym( s->handle, n )) == NULL) { err = n; break; } } while(0)
|
||||||
for(;;) {
|
for(;;) {
|
||||||
#else /* !CONFIG_LIBFAADBIN */
|
#else /* !CONFIG_LIBFAADBIN */
|
||||||
|
Loading…
Reference in New Issue
Block a user