X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswftools.c;h=47ce10ef8b3ad5ce1562c083be7328e1a9135ff5;hb=6569de8b8a960bf8f90afa149a6350adf11a8034;hp=2a6e542ac44d8bd2fc4d8a048512441a1781aabe;hpb=7a288be1a024ee8b5f36bc84cf078cb71cbd0dfb;p=swftools.git diff --git a/lib/modules/swftools.c b/lib/modules/swftools.c index 2a6e542..47ce10e 100644 --- a/lib/modules/swftools.c +++ b/lib/modules/swftools.c @@ -90,7 +90,7 @@ U16 swf_GetDefineID(TAG * t) case ST_DEFINEBUTTONSOUND: case ST_DEFINEFONT: case ST_DEFINEFONT2: - case ST_DEFINEFONTINFO: + case ST_DEFINEFONTINFO: //psedodefine case ST_DEFINETEXT: case ST_DEFINETEXT2: case ST_DEFINESOUND: @@ -172,6 +172,12 @@ static int swf_spritetagids[] = -1 }; +static int swf_pseudodefiningtagids[] = +{ + ST_DEFINEFONTINFO, + -1 +}; + U8 swf_isAllowedSpriteTag(TAG * tag) { int id = tag->id; @@ -198,6 +204,19 @@ U8 swf_isDefiningTag(TAG * tag) return 0; } +U8 swf_isPseudoDefiningTag(TAG * tag) +{ + int id = tag->id; + int t=0; + while(swf_pseudodefiningtagids[t]>=0) + { + if(swf_pseudodefiningtagids[t] == id) + return 1; + t++; + } + return 0; +} + U16 swf_GetDepth(TAG * t) // up to SWF 4.0 {