Skip to content

Commit

Permalink
CanonLe block has no size element
Browse files Browse the repository at this point in the history
This is what has been causing corruption in my file writing by reducing
the block from 30 bytes to 28, offsetting subsequent data by two bytes.

Signed-off-by: Jim Easterbrook <[email protected]>
  • Loading branch information
jim-easterbrook authored and neheb committed Dec 21, 2023
1 parent 2caf90a commit 5076f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tiffimage_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ constexpr ArrayCfg canonLeCfg = {
invalidByteOrder, // Use byte order from parent
ttUndefined, // Type for array entry and size element
notEncrypted, // Not encrypted
true, // Has a size element
false, // No size element
false, // No fillers
false, // Don't concatenate gaps
{0, ttUnsignedByte, 1},
Expand Down

0 comments on commit 5076f54

Please sign in to comment.