CCITT EncodedByteAlign now default for RLE, always overridable.

This commit is contained in:
Harald Kuhr 2018-01-17 17:41:25 +01:00
parent b3b06dff4a
commit d564a6b338

View File

@ -72,7 +72,8 @@ final class CCITTFaxDecoderStream extends FilterInputStream {
/**
* Creates a CCITTFaxDecoderStream.
* This is used for CCITT streams from PDF files, which use EncodedByteAlign.
* This constructor may be used for CCITT streams embedded in PDF files,
* which use EncodedByteAlign.
*
* @param stream the compressed CCITT stream.
* @param columns the number of columns in the stream.
@ -144,7 +145,7 @@ final class CCITTFaxDecoderStream extends FilterInputStream {
*/
public CCITTFaxDecoderStream(final InputStream stream, final int columns, final int type, final int fillOrder,
final long options) {
this(stream, columns, type, fillOrder, options, false);
this(stream, columns, type, fillOrder, options, type == TIFFBaseline.COMPRESSION_CCITT_MODIFIED_HUFFMAN_RLE);
}
private void fetch() throws IOException {