Skip to content

Commit

Permalink
Fix typo causing prefix len to be wrong
Browse files Browse the repository at this point in the history
When constructing the decompress side of dwaa/b compression support,
simple typo when computing the prefix length as distance between
pointers causing the length to be wrong, triggering csc decompression
values to be wrong when decompressed.

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
  • Loading branch information
kdt3rd committed Mar 21, 2024
1 parent 7aa89e1 commit 50404f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/OpenEXRCore/internal_dwa_compressor.h
Original file line number Diff line number Diff line change
Expand Up @@ -1600,7 +1600,7 @@ DwaCompressor_classifyChannels (DwaCompressor* me)
prefixMap,
me->_numChannels,
curc->channel_name,
(size_t) (curc->channel_name - suffix));
(size_t) (suffix - curc->channel_name));

for (size_t i = 0; i < me->_channelRuleCount; ++i)
{
Expand Down

0 comments on commit 50404f1

Please sign in to comment.