mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2026-05-27 00:00:02 -04:00
findCompressionType always uses RLE if leading EOL is missing (#657)
Update of the last read byte is missing since the last update. So if only the first EOL is missing, further EOLs after the lines are not detected.
This commit is contained in:
committed by
GitHub
parent
7e0d8922da
commit
ac8a36db1c
+1
@@ -170,6 +170,7 @@ final class CCITTFaxDecoderStream extends FilterInputStream {
|
||||
// no EOL before stream end
|
||||
return TIFFBaseline.COMPRESSION_CCITT_MODIFIED_HUFFMAN_RLE;
|
||||
}
|
||||
streamByte = (byte) read;
|
||||
}
|
||||
|
||||
b = (short) ((b << 1) + ((streamByte >> (7 - (i % 8))) & 0x01));
|
||||
|
||||
Reference in New Issue
Block a user