From fd67d46be709b3b951a3bfc778550b787b6fe225 Mon Sep 17 00:00:00 2001 From: Mickael Savinaud Date: Thu, 6 Oct 2011 08:05:00 +0000 Subject: [PATCH] [trunk] WIP: fix build error with windows configuration induced by rev 960 --- CHANGES | 3 +++ applications/codec/j2k_to_image.c | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index 779b1e93..6511cfdd 100644 --- a/CHANGES +++ b/CHANGES @@ -5,6 +5,9 @@ What's New for OpenJPEG ! : changed + : added +October 06, 2011 +* [mickael] WIP: fix build errors with windows configuration induced by rev 960 + October 05, 2011 + [mickael] WIP: fix the decoding process with conformance files and V2 framework diff --git a/applications/codec/j2k_to_image.c b/applications/codec/j2k_to_image.c index d110b58b..65ba1e5a 100644 --- a/applications/codec/j2k_to_image.c +++ b/applications/codec/j2k_to_image.c @@ -579,7 +579,7 @@ int main(int argc, char **argv) opj_image_t image; opj_stream_t *cio = NULL; /* Stream */ opj_codec_t* dinfo = NULL; /* Handle to a decompressor */ - + opj_bool bRes1, bRes2; char indexfilename[OPJ_PATH_LEN]; /* index file name */ @@ -715,8 +715,8 @@ int main(int argc, char **argv) /* Get the decoded image */ - opj_bool bRes1 = opj_decode_v2(dinfo, cio, &image); - opj_bool bRes2 = opj_end_decompress(dinfo,cio); + bRes1 = opj_decode_v2(dinfo, cio, &image); + bRes2 = opj_end_decompress(dinfo,cio); /*if ( !(opj_decode_v2(dinfo, cio, &image)) || !(opj_end_decompress(dinfo,cio)) ) {*/ if ( !bRes1 || !bRes2) {