From af8339d33f92d1f88b504d9cd84cde981fef94df Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Fri, 10 Dec 2021 11:27:44 +0100 Subject: [PATCH] Remove duplicate assignments in function tiftoimage Signed-off-by: Stefan Weil --- src/bin/jp2/converttif.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/bin/jp2/converttif.c b/src/bin/jp2/converttif.c index 5c6295ce..c2e7d1cb 100644 --- a/src/bin/jp2/converttif.c +++ b/src/bin/jp2/converttif.c @@ -1284,8 +1284,6 @@ opj_image_t* tiftoimage(const char *filename, opj_cparameters_t *parameters, TIFFGetField(tif, TIFFTAG_SAMPLESPERPIXEL, &tiSpp); TIFFGetField(tif, TIFFTAG_PHOTOMETRIC, &tiPhoto); TIFFGetField(tif, TIFFTAG_PLANARCONFIG, &tiPC); - w = (int)tiWidth; - h = (int)tiHeight; if (tiSpp == 0 || tiSpp > 4) { /* should be 1 ... 4 */ fprintf(stderr, "tiftoimage: Bad value for samples per pixel == %d.\n"