Mercurial > libavcodec.hg
comparison a52dec.c @ 4618:bb06df70f857 libavcodec
Add proper #idef to dlsymm call, also fixes an unresolved symbol on OS X 10.2.
patch by Patrice Bensoussan, patrice.bensoussan free fr
author | diego |
---|---|
date | Sat, 03 Mar 2007 08:33:07 +0000 |
parents | a0b9e07527c4 |
children |
comparison
equal
deleted
inserted
replaced
4617:a0b9e07527c4 | 4618:bb06df70f857 |
---|---|
68 int (*a52_block)(a52_state_t * state); | 68 int (*a52_block)(a52_state_t * state); |
69 void (*a52_free)(a52_state_t * state); | 69 void (*a52_free)(a52_state_t * state); |
70 | 70 |
71 } AC3DecodeState; | 71 } AC3DecodeState; |
72 | 72 |
73 #ifdef CONFIG_LIBA52BIN | |
73 static void* dlsymm(void* handle, const char* symbol) | 74 static void* dlsymm(void* handle, const char* symbol) |
74 { | 75 { |
75 void* f = dlsym(handle, symbol); | 76 void* f = dlsym(handle, symbol); |
76 if (!f) | 77 if (!f) |
77 av_log( NULL, AV_LOG_ERROR, "A52 Decoder - function '%s' can't be resolved\n", symbol); | 78 av_log( NULL, AV_LOG_ERROR, "A52 Decoder - function '%s' can't be resolved\n", symbol); |
78 return f; | 79 return f; |
79 } | 80 } |
81 #endif | |
80 | 82 |
81 static int a52_decode_init(AVCodecContext *avctx) | 83 static int a52_decode_init(AVCodecContext *avctx) |
82 { | 84 { |
83 AC3DecodeState *s = avctx->priv_data; | 85 AC3DecodeState *s = avctx->priv_data; |
84 | 86 |