From cc1d601722c459bb810253a4cb4eabe17ac41390 Mon Sep 17 00:00:00 2001 From: Mickael Savinaud Date: Mon, 13 Aug 2012 08:30:00 +0000 Subject: [PATCH] fix some warnings in jp2.c --- applications/codec/image_to_j2k.c | 1 - libopenjpeg/jp2.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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;