mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-04 03:55:28 -04:00
CCITT Fax writer: fill should only add bits if byte is not empty
This commit is contained in:
parent
237079bcc9
commit
6c702c447b
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user