and abort after 20 consecutive errors.
/** the output buffer size */
#define AAC_OUTBUF_SIZE (32 * 1024)
/** the output buffer size */
#define AAC_OUTBUF_SIZE (32 * 1024)
/**
* data specific to the aacdec filter
*
/**
* data specific to the aacdec filter
*
int initialized;
int decoder_length;
int initialized;
int decoder_length;
size_t consumed_total;
size_t entry;
};
size_t consumed_total;
size_t entry;
};
p = inbuf + consumed;
outbuffer = NeAACDecDecode(padd->handle, &padd->frame_info, p,
len - consumed);
p = inbuf + consumed;
outbuffer = NeAACDecDecode(padd->handle, &padd->frame_info, p,
len - consumed);
if (padd->frame_info.error) {
if (padd->frame_info.error) {
+ ret = -E_AAC_DECODE;
+ if (padd->error_count++ > MAX_ERRORS)
+ goto out;
PARA_ERROR_LOG("frame_error: %d, consumed: %zu + %zd + %lu\n",
padd->frame_info.error, padd->consumed_total,
consumed, padd->frame_info.bytesconsumed);
PARA_ERROR_LOG("frame_error: %d, consumed: %zu + %zd + %lu\n",
padd->frame_info.error, padd->consumed_total,
consumed, padd->frame_info.bytesconsumed);
consumed++; /* catch 21 */
goto success;
}
consumed++; /* catch 21 */
goto success;
}
consumed += padd->frame_info.bytesconsumed;
ret = consumed;
if (!padd->frame_info.samples)
consumed += padd->frame_info.bytesconsumed;
ret = consumed;
if (!padd->frame_info.samples)