TMI #237: Fix for CCITT images with more b/w changes than columns

This commit is contained in:
Oliver Schmidtmer
2016-05-07 01:06:53 +02:00
parent e0434a1dcb
commit fa0341f302
2 changed files with 20 additions and 6 deletions
@@ -86,8 +86,8 @@ final class CCITTFaxDecoderStream extends FilterInputStream {
fillOrder, "Expected fill order 1 or 2: %s"
);
this.changesReferenceRow = new int[columns];
this.changesCurrentRow = new int[columns];
this.changesReferenceRow = new int[columns + 1];
this.changesCurrentRow = new int[columns + 1];
switch (type) {
case TIFFExtension.COMPRESSION_CCITT_T4: