summaryrefslogtreecommitdiff
path: root/core/decoders/tight.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/decoders/tight.js')
-rw-r--r--core/decoders/tight.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/core/decoders/tight.js b/core/decoders/tight.js
index 5a0a315..c226b33 100644
--- a/core/decoders/tight.js
+++ b/core/decoders/tight.js
@@ -161,9 +161,6 @@ export default class TightDecoder {
}
data = this._zlibs[streamId].inflate(data, uncompressedSize);
- if (data.length != uncompressedSize) {
- throw new Error("Incomplete zlib block");
- }
}
display.blitRgbImage(x, y, width, height, data, 0, false);
@@ -209,9 +206,6 @@ export default class TightDecoder {
}
data = this._zlibs[streamId].inflate(data, uncompressedSize);
- if (data.length != uncompressedSize) {
- throw new Error("Incomplete zlib block");
- }
}
// Convert indexed (palette based) image data to RGB