From 3cd7f0e6f29fe4547c8f995d0463be5c2f6f67e4 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Wed, 1 Apr 2015 15:14:56 +1100 Subject: [PATCH] Removed unused variable in Jpeg2KEncode --- libImaging/Jpeg2KEncode.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libImaging/Jpeg2KEncode.c b/libImaging/Jpeg2KEncode.c index ea4bca2f2..868cfdb41 100644 --- a/libImaging/Jpeg2KEncode.c +++ b/libImaging/Jpeg2KEncode.c @@ -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;