From: kramm Date: Sat, 15 Jul 2006 11:47:55 +0000 (+0000) Subject: fixed FreeTag bug X-Git-Tag: release-0-8-0~158 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=299ae1bde22ccf79cf1c9666ce51ef27bc29308d fixed FreeTag bug --- diff --git a/src/swfdump.c b/src/swfdump.c index 8eaeb25..0a2ed76 100644 --- a/src/swfdump.c +++ b/src/swfdump.c @@ -925,11 +925,6 @@ int main (int argc,char ** argv) printf("[%03x] %9ld %s%s", tag->id, tag->len, prefix, swf_TagGetName(tag)); } - if(tag->id == ST_FREECHARACTER) { - U16 id = swf_GetU16(tag); - idtab[id] = 0; - } - if(swf_isDefiningTag(tag)) { U16 id = swf_GetDefineID(tag); printf(" defines id %04d", id); @@ -1176,6 +1171,13 @@ int main (int argc,char ** argv) printf("\n"); } } + + if(tag->id == ST_FREECHARACTER) { + U16 id; + swf_SetTagPos(tag, 0); + id = swf_GetU16(tag); + idtab[id] = 0; + } if(tag->len && hex) { hexdumpTag(tag, prefix);