Browse Source

- added TIFF_ERROR to enum TIFFDataType

- bugfix, returned TIFF_ERROR instead -1 in TIFFGetRawTagType()
development
Andreas Romeyke 8 months ago
parent
commit
fb2309da62
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      src/headers/tiff.h
  2. +1
    -1
      src/helper/check_tiffparse.c

+ 2
- 1
src/headers/tiff.h View File

@ -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;
/*


+ 1
- 1
src/helper/check_tiffparse.c View File

@ -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