[1.5] Fix remainings warnings on 1.5 branch

This commit is contained in:
Mathieu Malaterre 2014-03-12 11:52:26 +00:00
parent af2be2d456
commit a05a9aa4ed
2 changed files with 5 additions and 3 deletions

View File

@ -830,7 +830,7 @@ opj_image_t* bmptoimage(const char *filename, opj_cparameters_t *parameters)
int *green = image->comps[1].data;
int *blue = image->comps[2].data;
unsigned int offset = File_h.bfOffBits;
unsigned int line;
int line;
/* set image data */
for(line = 0; line < h; ++line)

View File

@ -63,8 +63,8 @@ int main(int argc, char *argv[])
opj_cparameters_t parameters;
int subsampling_dx = parameters.subsampling_dx;
int subsampling_dy = parameters.subsampling_dy;
int subsampling_dx;
int subsampling_dy;
const char outputfile[] = "testempty2.j2k";
opj_image_cmptparm_t cmptparm;
@ -81,6 +81,8 @@ int main(int argc, char *argv[])
opj_set_default_encoder_parameters(&parameters);
parameters.cod_format = J2K_CFMT;
puts(v);
subsampling_dx = parameters.subsampling_dx;
subsampling_dy = parameters.subsampling_dy;
cmptparm.prec = 8;
cmptparm.bpp = 8;
cmptparm.sgnd = 0;