Browse Source

- added TIFF_ERROR to enum TIFFDataType

- bugfix, returned TIFF_ERROR instead -1 in TIFFGetRawTagType()
development
Andreas Romeyke 10 months ago
parent
commit
fb2309da62
  1. 3
      src/headers/tiff.h
  2. 2
      src/helper/check_tiffparse.c

3
src/headers/tiff.h

@ -139,7 +139,8 @@ typedef enum {
TIFF_IFD = 13, /* %32-bit unsigned integer (offset) */
TIFF_LONG8 = 16, /* BigTIFF 64-bit unsigned integer */
TIFF_SLONG8 = 17, /* BigTIFF 64-bit signed integer */
TIFF_IFD8 = 18 /* BigTIFF 64-bit unsigned integer (offset) */
TIFF_IFD8 = 18, /* BigTIFF 64-bit unsigned integer (offset) */
TIFF_ERROR = 0,
} TIFFDataType;
/*

2
src/helper/check_tiffparse.c

@ -691,7 +691,7 @@ TIFFDataType TIFFGetRawTagType(ctiff_t * ctif, tag_t tag) {
return datatype;
} else { /* tag not defined */
printf("\ttag %u (%s) was not found, but requested because defined\n", tag, TIFFTagName(tag));
return -1;
return TIFF_ERROR;
}
}

Loading…
Cancel
Save