mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-04 12:05:29 -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();
|
clearOutputBuffer();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
System.err.println("");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void writeEOL() throws IOException {
|
private void writeEOL() throws IOException {
|
||||||
@ -329,7 +328,9 @@ public class CCITTFaxEncoderStream extends OutputStream {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void fill() throws IOException {
|
private void fill() throws IOException {
|
||||||
|
if (outputBufferBitLength != 0) {
|
||||||
stream.write(outputBuffer);
|
stream.write(outputBuffer);
|
||||||
|
}
|
||||||
clearOutputBuffer();
|
clearOutputBuffer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user