fprintf(stderr, "faac: frame decodinf failed: %s\n",
av_log(avctx, AV_LOG_ERROR, "faac: frame decodinf failed: %s\n",
static int faac_decode_frame(AVCodecContext *avctx,                             void *data, int *data_size,                             uint8_t *buf, int buf_size){    FAACContext *s = (FAACContext *) avctx->priv_data;    faacDecFrameInfo frame_info;    void* out = s->faacDecDecode(s->faac_handle, &frame_info, (unsigned char*)buf);    //printf("DECODE FRAME %d, %d, %d - %p\n", buf_size, frame_info.samples, frame_info.bytesconsumed, out);    if (frame_info.error > 0) {	fprintf(stderr, "faac: frame decodinf failed: %s\n",		s->faacDecGetErrorMessage(frame_info.error));        return 0;    }    frame_info.samples *= s->sample_size;    memcpy(data, out, frame_info.samples); // CHECKME - can we cheat this one    if (data_size)	*data_size = frame_info.samples;    return (buf_size < (int)frame_info.bytesconsumed)	? buf_size : (int)frame_info.bytesconsumed;}