AS1/2 better deobfuscation

code formatting
This commit is contained in:
Jindra Pet��k
2013-03-10 06:03:15 +01:00
parent 959a413a72
commit 4c1485808f
164 changed files with 1083 additions and 666 deletions
@@ -114,24 +114,24 @@ public class FLVOutputStream extends OutputStream {
write("FLV".getBytes());
write(1); //version
writeUB(5, 0); //must be 0
writeUB(1, audio?1:0); //audio present
writeUB(1, audio ? 1 : 0); //audio present
writeUB(1, 0); //reserved
writeUB(1, video?1:0); //video present
writeUB(1, video ? 1 : 0); //video present
writeUI32(9); //header size
writeUI32(0);
}
public void writeTag(FLVTAG tag) throws IOException {
long posBefore=getPos();
long posBefore = getPos();
writeUI8(tag.tagType);
byte data[]=tag.data.getBytes();
byte data[] = tag.data.getBytes();
writeUI24(data.length);
writeUI24(tag.timeStamp&0xffffff);
writeUI8((int)((tag.timeStamp>>24) & 0xff));
writeUI24(tag.timeStamp & 0xffffff);
writeUI8((int) ((tag.timeStamp >> 24) & 0xff));
writeUI24(0);
write(data);
long posAfter=getPos();
long size=posAfter-posBefore;
long posAfter = getPos();
long size = posAfter - posBefore;
writeUI32(size);
}
}