X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.c;h=a225f7e954db0c508a91e30f43636e3bcd9dfc73;hb=862d099892e1db70421248467923acc9b80bac21;hp=aea9a9336feebc3a24c5b88db6236723e8a7b816;hpb=821eebe017d8a1d7a01133c3aae2d1e3e64e0d74;p=swftools.git diff --git a/lib/rfxswf.c b/lib/rfxswf.c index aea9a93..a225f7e 100644 --- a/lib/rfxswf.c +++ b/lib/rfxswf.c @@ -456,7 +456,7 @@ void swf_ExpandRect3(SRECT*src, SPOINT center, int radius) src->ymin = center.y-radius; src->xmax = center.x+radius; src->ymax = center.y+radius; - if((center.x|cetner.y|radius) == 0) src->xmax++; //make sure the bbox is not NULL anymore + if((center.x|center.y|radius) == 0) src->xmax++; //make sure the bbox is not NULL anymore return; } if(center.x - radius < src->xmin) @@ -1254,7 +1254,7 @@ int swf_WriteSWF2(struct writer_t*writer, SWF * swf) // Writes SWF to file, while(t) { len += swf_WriteTag(-1,t); - if(t->id == ST_DEFINESPRITE) inSprite++; + if(t->id == ST_DEFINESPRITE && !swf_IsFolded(t)) inSprite++; else if(t->id == ST_END && inSprite) inSprite--; else if(t->id == ST_SHOWFRAME && !inSprite) frameCount++; t = swf_NextTag(t);