Mercurial > libavcodec.hg
diff a52dec.c @ 2846:40765c51a7a9 libavcodec
Compilation fixes part 1 patch by (Arvind R. and Burkhard Plaum, plaum, ipf uni-stuttgart de)
author | michael |
---|---|
date | Fri, 26 Aug 2005 19:05:44 +0000 |
parents | 141a9539e270 |
children | bfabfdf9ce55 |
line wrap: on
line diff
--- a/a52dec.c Fri Aug 26 15:41:28 2005 +0000 +++ b/a52dec.c Fri Aug 26 19:05:44 2005 +0000 @@ -73,9 +73,16 @@ { 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 @@ 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");