From e706e07f834bbabf419f181af46529b0d6b19e9a Mon Sep 17 00:00:00 2001 From: staphen Date: Fri, 11 Oct 2024 22:34:43 -0400 Subject: [PATCH] Do not assume 10-byte header for CL2 data --- Source/utils/cl2_to_clx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/utils/cl2_to_clx.cpp b/Source/utils/cl2_to_clx.cpp index 43cfef0a03f..1acff2428c7 100644 --- a/Source/utils/cl2_to_clx.cpp +++ b/Source/utils/cl2_to_clx.cpp @@ -64,7 +64,7 @@ uint16_t Cl2ToClx(const uint8_t *data, size_t size, unsigned transparentRunWidth = 0; int_fast16_t xOffset = 0; size_t frameHeight = 0; - const uint8_t *src = frameBegin + FrameHeaderSize; + const uint8_t *src = frameBegin + LoadLE16(frameBegin); while (src != frameEnd) { auto remainingWidth = static_cast(frameWidth) - xOffset; while (remainingWidth > 0) {