const char *s, *magic_s;
int ext_format, magic_format;
unsigned char buf[12];
- unsigned int l_nb_read;
+ OPJ_SIZE_T l_nb_read;
reader = fopen(fname, "rb");
{
FILE *fsrc = NULL;
+ OPJ_UINT32 index;
opj_dparameters_t parameters; /* decompression parameters */
opj_image_t* image = NULL;
opj_stream_t *l_stream = NULL; /* Stream */
fclose(fsrc); \
return EXIT_FAILURE; \
} \
+ for(index = 0; index < image->numcomps; ++index) { \
+ if( image->comps[index].data == NULL ) \
+ return EXIT_FAILURE; \
+ } \
fprintf(stdout, "Tile %d is decoded successfully\n", tile_index);
TEST_TILE(tile_ul)