Skip to content

Commit

Permalink
Add element to ssshist
Browse files Browse the repository at this point in the history
sssshist stores a histogram of how often each ssss value is used.  There are 16 of them, from 1-16.  Though 0 is unused, it's more convenient to index the elements by ssss so, rather than subtract one before indexing, we will make the array larger by one element.

This fixes ilia3101#266
  • Loading branch information
esoha-nvidia committed Jan 17, 2023
1 parent 452fba5 commit ef8a955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mlv/liblj92/lj92.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ typedef struct _ljp {
int skiplen; // Skip this many values after each row
u16* linearize; // Linearization table
int linlen;
int sssshist[16];
int sssshist[17];

// Huffman table - only one supported, and probably needed
#ifdef SLOW_HUFF
Expand Down

0 comments on commit ef8a955

Please sign in to comment.