Revision 57514323 libavcodec/a52dec.c

View differences:

libavcodec/a52dec.c
19 19
#include "avcodec.h"
20 20
#include "liba52/a52.h"
21 21

  
22
#ifdef LIBAVCODEC_A52BIN
22
#ifdef CONFIG_A52BIN
23 23
#include <dlfcn.h>
24 24
static const char* liba52name = "liba52.so.0";
25 25
#endif
......
62 62

  
63 63
} AC3DecodeState;
64 64

  
65
#ifdef LIBAVCODEC_A52BIN
65
#ifdef CONFIG_A52BIN
66 66
static void* dlsymm(void* handle, const char* symbol)
67 67
{
68 68
    void* f = dlsym(handle, symbol);
......
76 76
{
77 77
    AC3DecodeState *s = avctx->priv_data;
78 78

  
79
#ifdef LIBAVCODEC_A52BIN
79
#ifdef CONFIG_A52BIN
80 80
    s->handle = dlopen(liba52name, RTLD_LAZY);
81 81
    if (!s->handle)
82 82
    {
......
95 95
	dlclose(s->handle);
96 96
        return -1;
97 97
    }
98
    printf("INITIALIZED\n");
99 98
#else
100 99
    /* static linked version */
101 100
    s->handle = 0;
......
233 232
{
234 233
    AC3DecodeState *s = avctx->priv_data;
235 234
    s->a52_free(s->state);
236
#ifdef LIBAVCODEC_A52BIN
235
#ifdef CONFIG_A52BIN
237 236
    dlclose(s->handle);
238 237
#endif
239 238
    return 0;

Also available in: Unified diff