Skip to content

Commit

Permalink
notes on code.
Browse files Browse the repository at this point in the history
Getting ready for the weekend.
  • Loading branch information
juliusfriedman committed Oct 31, 2024
1 parent 6bb1bef commit 04d89a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Codecs/Image/Jpeg/Classes/HuffmanLookupTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 04d89a2

Please sign in to comment.