From 04d89a2060c1ff094dca4690d6881fccd82e5a5f Mon Sep 17 00:00:00 2001 From: Julius Friedman Date: Thu, 31 Oct 2024 16:57:08 -0400 Subject: [PATCH] notes on code. Getting ready for the weekend. --- Codecs/Image/Jpeg/Classes/HuffmanLookupTable.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Codecs/Image/Jpeg/Classes/HuffmanLookupTable.cs b/Codecs/Image/Jpeg/Classes/HuffmanLookupTable.cs index f17bd021..93ece7f7 100644 --- a/Codecs/Image/Jpeg/Classes/HuffmanLookupTable.cs +++ b/Codecs/Image/Jpeg/Classes/HuffmanLookupTable.cs @@ -134,7 +134,7 @@ public HuffmanLookupTable(HuffmanTable huffmanTable) } } - ValOffset[18] = 0; + ValOffset[18] = 0; //LibJpeg-turbo does this, but it sets index 17 to 0, not 18 MaxCode[17] = ulong.MaxValue; // Ensures huff decode terminates // Compute lookahead tables to speed up decoding.