Skip to content

Commit

Permalink
Merge pull request uclouvain#1392 from stweil/duplicate
Browse files Browse the repository at this point in the history
Remove duplicate assignments in function tiftoimage
  • Loading branch information
rouault authored Dec 10, 2021
2 parents 22eb737 + af8339d commit fe2fa70
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/bin/jp2/converttif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit fe2fa70

Please sign in to comment.