[osflash] Problem with Tag format
smartsl
smartsl at gmail.com
Sat Aug 26 21:57:55 EDT 2006
hi, developers, i've written a small program to list all tags in a swf file,
then remove some unknown tags by some encryption software. But i have some
problems here. RECORDHEADER definition have two types, short one for tags
with 62 bytes or less and long one for tags with more bytes. But it seems
there are some undocumented rules, e.g. FLASM said,
Code:
if (length >= 63
|| type == TAG_DEFINEBITSLOSSLESS
|| type == TAG_DEFINEBITSLOSSLESS2
|| type == TAG_SOUNDSTREAMBLOCK) {
/*
long length, and also workaround for a really strange bug in flash
player:
the above tags must always have long length to work
*/
flputShort((type << 6) + 63);
flputLong(length);
}
else {
/* short length */
flputShort((type << 6) + length);
}
Is it true, or even some more rules here? Thanks very much for kindly helps.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20060827/486c659a/attachment-0001.htm
More information about the osflash
mailing list