case 8: fprintf(stderr, "FAADlib unsupported bps %d\n", avctx->bits_per_sample); break;
case 8: av_log(avctx, AV_LOG_ERROR, "FAADlib unsupported bps %d\n", avctx->bits_per_sample); break;
static int faac_decode_init(AVCodecContext *avctx){    FAACContext *s = (FAACContext *) avctx->priv_data;    faacDecConfigurationPtr faac_cfg;#ifdef CONFIG_FAADBIN    const char* err = 0;    s->handle = dlopen(libfaadname, RTLD_LAZY);    if (!s->handle)    {	fprintf(stderr, "FAAD library: %s could not be opened! \n%s\n",		libfaadname, dlerror());        return -1;    }#define dfaac(a, b) \    do { static const char* n = "faacDec" #a; \    if ((s->faacDec ## a = b dlsym( s->handle, n )) == NULL) { err = n; break; } } while(0)    for(;;) {#else  /* !CONFIG_FAADBIN */#define dfaac(a, b)     s->faacDec ## a = faacDec ## a#endif /* CONFIG_FAADBIN */        // resolve all needed function calls        dfaac(Open, (faacDecHandle FAADAPI (*)(void)));	dfaac(GetCurrentConfiguration, (faacDecConfigurationPtr					FAADAPI (*)(faacDecHandle)));	dfaac(SetConfiguration, (unsigned char FAADAPI (*)(faacDecHandle,							   faacDecConfigurationPtr)));	dfaac(Init, (long FAADAPI (*)(faacDecHandle, unsigned char*,				     unsigned long*, unsigned char*)));        dfaac(Init2, (char FAADAPI (*)(faacDecHandle, unsigned char*,				       unsigned long, unsigned long*,				       unsigned char*)));        dfaac(Close, (void FAADAPI (*)(faacDecHandle hDecoder)));	dfaac(Decode, (void* FAADAPI (*)(faacDecHandle, faacDecFrameInfo*,					 unsigned char*)));	dfaac(GetErrorMessage, (unsigned char* FAADAPI (*)(unsigned char)));#undef dfacc#ifdef CONFIG_FAADBIN        break;    }    if (err) {        dlclose(s->handle);	fprintf(stderr, "FAAD library: cannot resolve %s in %s!\n",		err, libfaadname);        return -1;    }#endif    s->faac_handle = s->faacDecOpen();    if (!s->faac_handle) {        fprintf(stderr, "FAAD library: cannot create handler!\n");        faac_decode_end(avctx);        return -1;    }    faac_cfg = s->faacDecGetCurrentConfiguration(s->faac_handle);    if (faac_cfg) {	switch (avctx->bits_per_sample) {	case 8: fprintf(stderr, "FAADlib unsupported bps %d\n", avctx->bits_per_sample); break;	default:	case 16:	    faac_cfg->outputFormat = FAAD_FMT_16BIT;	    s->sample_size = 2;	    break;	case 24:	    faac_cfg->outputFormat = FAAD_FMT_24BIT;	    s->sample_size = 3;	    break;	case 32:	    faac_cfg->outputFormat = FAAD_FMT_32BIT;	    s->sample_size = 4;	    break;	}	faac_cfg->defSampleRate = (!avctx->sample_rate) ? 44100 : avctx->sample_rate;	faac_cfg->defObjectType = LC;    }    s->faacDecSetConfiguration(s->faac_handle, faac_cfg);    faac_init_mp4(avctx);    return 0;}