summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-12-10 11:57:41 +0100
committerGitHub <noreply@github.com>2021-12-10 11:57:41 +0100
commitfe2fa707161b2025ef82c325b9110c08bd0e812e (patch)
tree2e4948c92dabe4c4cf0e57de4d46f09ebd0f58cb /src
parent22eb737d5d5d25947cec28cf23bcb0b4a5a682a3 (diff)
parentaf8339d33f92d1f88b504d9cd84cde981fef94df (diff)
Merge pull request #1392 from stweil/duplicate
Remove duplicate assignments in function tiftoimage
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"