Merge pull request #1161 from radarhere/patch-1

Removed unused variable in Jpeg2KEncode
This commit is contained in:
Hugo 2015-04-01 09:35:15 +03:00
commit 12752affcf

View File

@ -257,7 +257,7 @@ j2k_encode_entry(Imaging im, ImagingCodecState state,
opj_image_cmptparm_t image_params[4];
unsigned xsiz, ysiz;
unsigned tile_width, tile_height;
unsigned tiles_x, tiles_y, num_tiles;
unsigned tiles_x, tiles_y;
unsigned x, y, tile_ndx;
unsigned n;
j2k_pack_tile_t pack;
@ -471,8 +471,6 @@ j2k_encode_entry(Imaging im, ImagingCodecState state,
tiles_y = (im->ysize + (params.image_offset_y0 - params.cp_ty0)
+ tile_height - 1) / tile_height;
num_tiles = tiles_x * tiles_y;
state->buffer = malloc (tile_width * tile_height * components * prec / 8);
tile_ndx = 0;