faster loading of compressed files

This commit is contained in:
Honfika
2014-03-21 23:53:45 +01:00
parent 490378991e
commit db36ddd9a6
3 changed files with 5 additions and 4 deletions

View File

@@ -539,7 +539,8 @@ public final class SWF implements TreeItem, Timelined {
gfx = true;
}
if (hdr[0] == 'C') {
sis = new SWFInputStream(new InflaterInputStream(is), version, 8);
byte[] uncompressedData = Helper.readStream(new InflaterInputStream(is));
sis = new SWFInputStream(new ByteArrayInputStream(uncompressedData), version, 8);
compressed = true;
}