mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-10-03 23:53:15 -04:00
CCITT Fax writer: fill should only add bits if byte is not empty
This commit is contained in:
@@ -315,7 +315,6 @@ public class CCITTFaxEncoderStream extends OutputStream {
|
||||
clearOutputBuffer();
|
||||
}
|
||||
}
|
||||
System.err.println("");
|
||||
}
|
||||
|
||||
private void writeEOL() throws IOException {
|
||||
@@ -329,7 +328,9 @@ public class CCITTFaxEncoderStream extends OutputStream {
|
||||
}
|
||||
|
||||
private void fill() throws IOException {
|
||||
stream.write(outputBuffer);
|
||||
if (outputBufferBitLength != 0) {
|
||||
stream.write(outputBuffer);
|
||||
}
|
||||
clearOutputBuffer();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user