diff --git a/applications/codec/image_to_j2k.c b/applications/codec/image_to_j2k.c index 71bafdb2..74d4b1a5 100644 --- a/applications/codec/image_to_j2k.c +++ b/applications/codec/image_to_j2k.c @@ -1594,7 +1594,6 @@ int main(int argc, char **argv) { opj_codec_t* l_codec = 00; opj_image_t *image = NULL; raw_cparameters_t raw_cp; - opj_codestream_info_t cstr_info; /* Codestream information structure */ char indexfilename[OPJ_PATH_LEN]; /* index file name */ diff --git a/libopenjpeg/jp2.h b/libopenjpeg/jp2.h index 9b9259c4..8309c288 100644 --- a/libopenjpeg/jp2.h +++ b/libopenjpeg/jp2.h @@ -119,7 +119,7 @@ Palette data: table entries, palette columns */ typedef struct opj_jp2_pclr { - OPJ_INT32 *entries; + OPJ_UINT32 *entries; OPJ_BYTE *channel_sign; OPJ_BYTE *channel_size; opj_jp2_cmap_comp_t *cmap;