This commit is contained in:
Looly
2022-11-10 11:11:09 +08:00
parent 912c3e116d
commit 5bd54dcd39
3 changed files with 7 additions and 2 deletions

View File

@@ -213,8 +213,9 @@ class LZWEncoder {
if (free_ent < maxmaxcode) {
codetab[i] = free_ent++; // code -> hashtable
htab[i] = fcode;
} else
} else {
cl_block(outs);
}
}
// Put out the final code.
output(ent, outs);