mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-04 03:55:28 -04:00
Fixed an issue with long runlengths in CCITTFax writing
This commit is contained in:
parent
b818454a3f
commit
7c0b4fd91a
@ -219,7 +219,7 @@ public class CCITTFaxEncoderStream extends OutputStream {
|
||||
while (nonterm > 0) {
|
||||
if (nonterm >= codes.length) {
|
||||
write(codes[codes.length - 1].code, codes[codes.length - 1].length);
|
||||
nonterm -= codes.length - 1;
|
||||
nonterm -= codes.length;
|
||||
}
|
||||
else {
|
||||
write(codes[nonterm - 1].code, codes[nonterm - 1].length);
|
||||
|
Loading…
x
Reference in New Issue
Block a user