From 95ae72b7e063cb02aa17c7f0c7d759844a37e526 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 26 Aug 2005 19:05:44 +0000 Subject: 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 --- libavcodec/a52dec.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'libavcodec/a52dec.c') 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"); -- cgit v1.2.3