From 5076f540a911e77bf97ba0f5f723d9769e44e330 Mon Sep 17 00:00:00 2001 From: Jim Easterbrook Date: Thu, 14 Dec 2023 13:47:14 +0000 Subject: [PATCH] CanonLe block has no size element 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 --- src/tiffimage_int.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tiffimage_int.cpp b/src/tiffimage_int.cpp index f789dd3d50..c5d86cf87f 100644 --- a/src/tiffimage_int.cpp +++ b/src/tiffimage_int.cpp @@ -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},