From e3e2dc1f6e5045ba7b180a7917b5b91a3a9b9e31 Mon Sep 17 00:00:00 2001 From: Mickael Savinaud Date: Thu, 11 Aug 2011 08:37:11 +0000 Subject: [PATCH] fixed build error with position of variable declaration after patch 856 --- CHANGES | 3 ++- libopenjpeg/j2k.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index c9f3b724..edf2a338 100644 --- 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. diff --git a/libopenjpeg/j2k.c b/libopenjpeg/j2k.c index 32e8bd95..a07951ad 100644 --- a/libopenjpeg/j2k.c +++ b/libopenjpeg/j2k.c @@ -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 */