From: kramm Date: Thu, 28 Oct 2004 16:31:16 +0000 (+0000) Subject: * added optimizing X-Git-Tag: release-0-6-3~242 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=1d7304595e6569999ca0a053d39358089ff40eb8;p=swftools.git * added optimizing * fixed framelabel for frame 0 --- diff --git a/src/swfc.c b/src/swfc.c index 50e5a03..e51848f 100644 --- a/src/swfc.c +++ b/src/swfc.c @@ -642,6 +642,8 @@ static void s_endSWF() tag = swf_InsertTag(tag, ST_END); swf_OptimizeTagOrder(swf); + + swf_Optimize(swf); if(!(swf->movieSize.xmax-swf->movieSize.xmin) || !(swf->movieSize.ymax-swf->movieSize.ymin)) { swf->movieSize = currentrect; /* "autocrop" */ @@ -705,6 +707,10 @@ void s_frame(int nr, int cut, char*name) swf_SetString(tag, name); } } + if(nr == 0 && currentframe == 0 && name) { + tag = swf_InsertTag(tag, ST_FRAMELABEL); + swf_SetString(tag, name); + } if(cut) { if(now == tag) {