aboutsummaryrefslogtreecommitdiffstats
path: root/fop-core
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2022-09-01 10:57:20 +0000
committerSimon Steiner <ssteiner@apache.org>2022-09-01 10:57:20 +0000
commit506bebfc1201acc1fa930673ae9b1cc8d98a54f9 (patch)
tree5748adf53a3e73302479841558efcb4372513789 /fop-core
parent21caac81cb9f9ff9cc08dbaf072abaf94ad7e5c1 (diff)
downloadxmlgraphics-fop-506bebfc1201acc1fa930673ae9b1cc8d98a54f9.tar.gz
xmlgraphics-fop-506bebfc1201acc1fa930673ae9b1cc8d98a54f9.zip
revert tile length changes
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1903808 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop-core')
-rw-r--r--fop-core/src/main/java/org/apache/fop/afp/ioca/ImageContent.java2
-rw-r--r--fop-core/src/main/java/org/apache/fop/afp/ioca/Tile.java2
2 files changed, 2 insertions, 2 deletions
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