summaryrefslogtreecommitdiff
path: root/libavcodec/a52dec.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2007-02-11 16:29:00 +0000
committerDiego Biurrun <diego@biurrun.de>2007-02-11 16:29:00 +0000
commit0900a85fe8f21374721a8a59642a8cdd2d5ddff3 (patch)
tree870175338ff8ca556648f63ed37904ae970187df /libavcodec/a52dec.c
parentf70f03f6237530de51e6bbe5c10d2ed70ed74fab (diff)
Remove internal liba52; external lib still works, native decoder coming up.
Originally committed as revision 7933 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/a52dec.c')
-rw-r--r--libavcodec/a52dec.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/libavcodec/a52dec.c b/libavcodec/a52dec.c
index 1bf7f8e0e2..ae67101dda 100644
--- a/libavcodec/a52dec.c
+++ b/libavcodec/a52dec.c
@@ -25,12 +25,9 @@
*/
#include "avcodec.h"
-#include "liba52/a52.h"
-
-#ifdef CONFIG_LIBA52BIN
+#include <a52dec/a52.h>
#include <dlfcn.h>
static const char* liba52name = "liba52.so.0";
-#endif
/**
* liba52 - Copyright (C) Aaron Holtzman
@@ -70,7 +67,6 @@ typedef struct AC3DecodeState {
} AC3DecodeState;
-#ifdef CONFIG_LIBA52BIN
static void* dlsymm(void* handle, const char* symbol)
{
void* f = dlsym(handle, symbol);
@@ -78,13 +74,11 @@ static void* dlsymm(void* handle, const char* symbol)
av_log( NULL, AV_LOG_ERROR, "A52 Decoder - function '%s' can't be resolved\n", symbol);
return f;
}
-#endif
static int a52_decode_init(AVCodecContext *avctx)
{
AC3DecodeState *s = avctx->priv_data;
-#ifdef CONFIG_LIBA52BIN
s->handle = dlopen(liba52name, RTLD_LAZY);
if (!s->handle)
{
@@ -103,16 +97,6 @@ static int a52_decode_init(AVCodecContext *avctx)
dlclose(s->handle);
return -1;
}
-#else
- /* static linked version */
- s->handle = 0;
- s->a52_init = a52_init;
- s->a52_samples = a52_samples;
- s->a52_syncinfo = a52_syncinfo;
- s->a52_frame = a52_frame;
- s->a52_block = a52_block;
- s->a52_free = a52_free;
-#endif
s->state = s->a52_init(0); /* later use CPU flags */
s->samples = s->a52_samples(s->state);
s->inbuf_ptr = s->inbuf;
@@ -242,9 +226,7 @@ static int a52_decode_end(AVCodecContext *avctx)
{
AC3DecodeState *s = avctx->priv_data;
s->a52_free(s->state);
-#ifdef CONFIG_LIBA52BIN
dlclose(s->handle);
-#endif
return 0;
}