summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2021-12-10 11:27:44 +0100
committerStefan Weil <sw@weilnetz.de>2021-12-10 11:29:06 +0100
commitaf8339d33f92d1f88b504d9cd84cde981fef94df (patch)
tree2e4948c92dabe4c4cf0e57de4d46f09ebd0f58cb /src
parent22eb737d5d5d25947cec28cf23bcb0b4a5a682a3 (diff)
Remove duplicate assignments in function tiftoimage
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'src')
-rw-r--r--src/bin/jp2/converttif.c2
1 files changed, 0 insertions, 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"