summaryrefslogtreecommitdiff
path: root/libavcodec/a52dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-08-26 19:05:44 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-08-26 19:05:44 +0000
commit95ae72b7e063cb02aa17c7f0c7d759844a37e526 (patch)
treefce2f7de2ba52379302e234fb30d1de82f0e63f9 /libavcodec/a52dec.c
parent5b2bf9434078d0a57482658d82a26c3b2a13493d (diff)
Compilation fixes part 1 patch by (Arvind R. and Burkhard Plaum, plaum, ipf uni-stuttgart de)
Originally committed as revision 4540 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/a52dec.c')
-rw-r--r--libavcodec/a52dec.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/libavcodec/a52dec.c b/libavcodec/a52dec.c
index 76c63b7905..7ebea40104 100644
--- a/libavcodec/a52dec.c
+++ b/libavcodec/a52dec.c
@@ -73,9 +73,16 @@ static void* dlsymm(void* handle, const char* symbol)
{
void* f = dlsym(handle, symbol);
if (!f)
- fprintf(stderr, "A52 Decoder - function '%s' can't be resolved\n", symbol);
+ av_log( NULL, AV_LOG_ERROR, "A52 Decoder - function '%s' can't be resolved\n", symbol);
return f;
}
+
+int ff_a52_syncinfo( AVCodecContext * avctx, uint8_t * buf, int * flags, int * sample_rate, int * bit_rate )
+{
+ AC3DecodeState *s = avctx->priv_data;
+
+ return s->a52_syncinfo(buf, flags, sample_rate, bit_rate);
+}
#endif
static int a52_decode_init(AVCodecContext *avctx)
@@ -86,7 +93,7 @@ static int a52_decode_init(AVCodecContext *avctx)
s->handle = dlopen(liba52name, RTLD_LAZY);
if (!s->handle)
{
- fprintf(stderr, "A52 library %s could not be opened! \n%s\n", liba52name, dlerror());
+ av_log( avctx, AV_LOG_ERROR, "A52 library %s could not be opened! \n%s\n", liba52name, dlerror());
return -1;
}
s->a52_init = (a52_state_t* (*)(uint32_t)) dlsymm(s->handle, "a52_init");