fixed build error with position of variable declaration after patch 856
authorMickael Savinaud <savmickael@users.noreply.github.com>
Thu, 11 Aug 2011 08:37:11 +0000 (08:37 +0000)
committerMickael Savinaud <savmickael@users.noreply.github.com>
Thu, 11 Aug 2011 08:37:11 +0000 (08:37 +0000)
CHANGES
libopenjpeg/j2k.c

diff --git a/CHANGES b/CHANGES
index c9f3b724e2c19bb4b880469c8cee4be727e22cff..edf2a3386a9644cc02059cc2d13e283917630b52 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,7 +6,8 @@ What's New for OpenJPEG
 + : added
 
 August 11, 2011
-! [mickael] fixed wrong patch with the return value of fgets into convert.c file
+* [mickael] fixed wrong patch with the return value of fgets into convert.c file
+* [mickael] fixed build error with position of variable declaration after patch 856
 
 August 10, 2011
 ! [mickael] removed unused parameters warnings with the solution proposed by myself and Bob Friesenhahn.
index 32e8bd95fe15966797f5c3b6b8eabce0abbf1695..a07951ad4bf1e288253ba53c812485d39decf1d9 100644 (file)
@@ -1861,10 +1861,10 @@ opj_image_t* j2k_decode_jpt_stream(opj_j2k_t *j2k, opj_cio_t *cio,  opj_codestre
        opj_image_t *image = NULL;
        opj_jpt_msg_header_t header;
        int position;
+       opj_common_ptr cinfo = j2k->cinfo;
 
        OPJ_ARG_NOT_USED(cstr_info);
 
-       opj_common_ptr cinfo = j2k->cinfo;
        j2k->cio = cio;
 
        /* create an empty image */