From: Simon Steiner Date: Thu, 1 Sep 2022 10:57:20 +0000 (+0000) Subject: revert tile length changes X-Git-Tag: fop-2_8~2^2~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=506bebfc1201acc1fa930673ae9b1cc8d98a54f9;p=xmlgraphics-fop.git revert tile length changes git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1903808 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/fop-core/src/main/java/org/apache/fop/afp/ioca/ImageContent.java b/fop-core/src/main/java/org/apache/fop/afp/ioca/ImageContent.java index b4f9645a6..543710e95 100644 --- a/fop-core/src/main/java/org/apache/fop/afp/ioca/ImageContent.java +++ b/fop-core/src/main/java/org/apache/fop/afp/ioca/ImageContent.java @@ -188,7 +188,7 @@ public class ImageContent extends AbstractStructuredObject { } } - private static final int MAX_DATA_LEN = 8188; + private static final int MAX_DATA_LEN = 65535; /** {@inheritDoc} */ @Override diff --git a/fop-core/src/main/java/org/apache/fop/afp/ioca/Tile.java b/fop-core/src/main/java/org/apache/fop/afp/ioca/Tile.java index 9f5f88d3a..617a962ba 100644 --- a/fop-core/src/main/java/org/apache/fop/afp/ioca/Tile.java +++ b/fop-core/src/main/java/org/apache/fop/afp/ioca/Tile.java @@ -141,7 +141,7 @@ public class Tile extends AbstractStructuredObject { int numFullChunks = dataLength / maxChunkLength; int lastChunkLength = dataLength % maxChunkLength; - byte[] len = BinaryUtils.convert(3 + maxChunkLength, 2); + byte[] len = {(byte) 0x1f, (byte) 0xff}; int off = 0; if (numFullChunks > 0) { // write out full data chunks