From 1d7304595e6569999ca0a053d39358089ff40eb8 Mon Sep 17 00:00:00 2001 From: kramm Date: Thu, 28 Oct 2004 16:31:16 +0000 Subject: [PATCH] * added optimizing * fixed framelabel for frame 0 --- src/swfc.c | 6 ++++++ 1 file changed, 6 insertions(+) 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) { -- 1.7.10.4