int len, char *index)
{
int tileno, compno, layno, resno, precno, pack_nb, x, y;
- char *dest = NULL;
+ unsigned char *dest = NULL;
FILE *INDEX = NULL;
FILE *f = NULL;
fprintf(stderr, "failed to open %s for writing\n", output);
return 1;
}
- dest = (char *) malloc(len);
+ dest = (unsigned char *) malloc(len);
cio_init(dest, len);
}
if (cp->intermed_file == 1) {
/* new dest for each tile */
free(dest);
- dest = (char *) malloc(len);
+ dest = (unsigned char *) malloc(len);
cio_init(dest, len);
}
j2k_curtileno = tileno;
if (cp->intermed_file == 1) {
free(dest);
- dest = (char *) malloc(len);
+ dest = (unsigned char *) malloc(len);
cio_init(dest, len);
}
jp2_struct->brand = JP2_JP2; /* BR */
jp2_struct->minversion = 0; /* MinV */
jp2_struct->numcl = 1;
- jp2_struct->cl = (int *) malloc(jp2_struct->numcl * sizeof(int));
+ jp2_struct->cl = (unsigned int *) malloc(jp2_struct->numcl * sizeof(int));
jp2_struct->cl[0] = JP2_JP2; /* CL0 : JP2 */
jp2_struct->C = 7; /* C : Always 7*/