Keep track of tag position in SWF file. Added code to dump tag infos.

(by Paolo Cancedda)
This commit is contained in:
Jindra Pet��k
2012-01-02 10:02:51 +01:00
parent 5107213517
commit a32835dd2f
42 changed files with 841 additions and 150 deletions
+5 -4
View File
@@ -135,20 +135,21 @@ public class SWF {
throw new IOException("Invalid SWF file");
}
version = is.read();
SWFInputStream sis = new SWFInputStream(is, version);
SWFInputStream sis = new SWFInputStream(is, version, 4);
fileSize = sis.readUI32();
if (hdr[0] == 'C') {
sis = new SWFInputStream(new InflaterInputStream(is), version);
sis = new SWFInputStream(new InflaterInputStream(is), version, 8);
compressed = true;
}
displayRect = sis.readRECT();
sis.readUI8();
// FIXED8 (16 bit fixed point) frameRate
int tmpFirstByetOfFrameRate = sis.readUI8();
frameRate = sis.readUI8();
frameCount = sis.readUI16();
tags = sis.readTagList();
tags = sis.readTagList(0);
}