X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.c;h=2a4b2e2281d38f0ea0ae748ae77d3d8d3370453f;hb=98c2aea6b4805af2151b30ddbafd9de267903e55;hp=616be52cc534d75f76bb2c32f7c2f6b4fdce6fc0;hpb=da143dcc87b39085a4e6a4d51e145af7c11c815e;p=swftools.git diff --git a/lib/rfxswf.c b/lib/rfxswf.c index 616be52..2a4b2e2 100644 --- a/lib/rfxswf.c +++ b/lib/rfxswf.c @@ -1315,9 +1315,9 @@ int swf_WriteSWF2(struct writer_t*writer, SWF * swf) // Writes SWF to file, #ifdef INSERT_RFX_TAG - if (swf->firstTag && swf->firstTag->next && - (swf->firstTag->id != ST_REFLEX || swf->firstTag->next->id != ST_REFLEX) - ) { + if ((swf->firstTag && swf->firstTag->id != ST_REFLEX) && + (!swf->firstTag->next || swf->firstTag->next->id != ST_REFLEX)) + { swf_SetBlock(swf_InsertTagBefore(swf, swf->firstTag,ST_REFLEX),"rfx",3); }