X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Frfxswf.c;h=82511d4fe490defe08dafd5e538c3e9fe0b700fd;hp=846a82d32772304321f387b6e7e3d4e97df49bac;hb=2a477e3f4b12dd0f9175e705ce9568405e5b1f17;hpb=f9471cd099af459b0581ae10150f11d61cca006e diff --git a/lib/rfxswf.c b/lib/rfxswf.c index 846a82d..82511d4 100644 --- a/lib/rfxswf.c +++ b/lib/rfxswf.c @@ -1296,7 +1296,8 @@ int swf_WriteSWF2(writer_t*writer, SWF * swf) // Writes SWF to file, return #ifdef INSERT_RFX_TAG if ((swf->firstTag && swf->firstTag->id != ST_REFLEX) && - (!swf->firstTag->next || swf->firstTag->next->id != ST_REFLEX)) + (!swf->firstTag->next || (swf->firstTag->next->id != ST_REFLEX && + (!swf->firstTag->next->next || (swf->firstTag->next->next->id!=ST_REFLEX))))) { swf_SetBlock(swf_InsertTagBefore(swf, swf->firstTag,ST_REFLEX),(U8*)"rfx",3); }