mp4AudioSpecificConfig mp4ASC;
int initialized;
- char *inbuf;
+ unsigned char *inbuf;
int inbuf_len;
int consumed;
long unsigned consumed_total;
- int noffsets;
- int *offset;
+ unsigned noffsets;
+ unsigned *offset;
int offset_pos;
};
static int find_esds(struct private_mp4dec_data *padd)
{
for (; padd->consumed < padd->inbuf_len; padd->consumed++) {
- char *p = padd->inbuf + padd->consumed;
+ unsigned char *p = padd->inbuf + padd->consumed;
int decoder_length;
if (p[0] != 'e' || p[1] != 's' || p[2] != 'd' || p[3] != 's')
int ret;
for (; padd->consumed < padd->inbuf_len; padd->consumed++) {
- char *p = padd->inbuf + padd->consumed;
+ unsigned char *p = padd->inbuf + padd->consumed;
if (p[0] != 's' || p[1] != 't' || p[2] != 'c' || p[3] != 'o')
continue;
if (len < 1000 && !*fci->eof)
return 0;
padd->consumed = 0;
- padd->inbuf = inbuffer;
+ padd->inbuf = (unsigned char*)inbuffer;
padd->inbuf_len = len;
if (!padd->initialized) {
if (ret < 0)
goto out;
- p = inbuffer + padd->consumed;
+ p = padd->inbuf + padd->consumed;
ret = E_AACDEC_INIT;
if (NeAACDecInit2(padd->decoder, p, ret, &rate, &channels) < 0) {
PARA_INFO_LOG("header not found, consumed: %d\n",