Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update lzss.c #118

Merged
merged 1 commit into from
Jan 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/lzss/lzss.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,10 @@ void EncodeLZSS(FILE *inFile, FILE *outFile, int dontPad, int exactPad)
compressedSize++;
}
}
// We exhausted our input data, and might still have leftover bytes to fill, we need to write out padding blocks that resolve to a no-op.
/*
We exhausted our input data, and might still have leftover bytes to fill
we need to write out padding blocks that resolve to a no-op.
*/
if (exactPad) {
int remainder = 16 - (compressedSize % 16);
int padding_lengths[17] = {0x0, 0x1, 0x12, 0x3, 0x14, 0x5, 0x16, 0x7, 0x18, 0x9, 0x1A, 0xB, 0x1C, 0xD, 0x1E, 0xF, 0x0};
Expand Down
Loading