From 607c5dadd6089768b618cc99346de1b37a2c46f1 Mon Sep 17 00:00:00 2001 From: kramm Date: Wed, 17 Nov 2004 17:42:45 +0000 Subject: [PATCH] * fixed swf_CopySWF * fixed "duplicate ST_REFLEX tag" bug. --- lib/rfxswf.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/rfxswf.c b/lib/rfxswf.c index ae33ad5..2f80c88 100644 --- a/lib/rfxswf.c +++ b/lib/rfxswf.c @@ -1311,9 +1311,11 @@ int swf_WriteSWF2(struct writer_t*writer, SWF * swf) // Writes SWF to file, #ifdef INSERT_RFX_TAG - if (swf->firstTag && swf_NextTag(swf->firstTag)) - if (swf_GetTagID(swf_NextTag(swf->firstTag))!=ST_REFLEX) + if (swf->firstTag && swf->firstTag->next && + (swf->firstTag->id != ST_REFLEX || swf->firstTag->next->id != ST_REFLEX) + ) { swf_SetBlock(swf_InsertTagBefore(swf, swf->firstTag,ST_REFLEX),"rfx",3); + } #endif // INSERT_RFX_TAG @@ -1499,6 +1501,7 @@ SWF* swf_CopySWF(SWF*swf) ntag = swf_CopyTag(ntag, tag); if(!nswf->firstTag) nswf->firstTag = ntag; + tag = tag->next; } return nswf; } -- 1.7.10.4