From 08cb34b5daec9b0e7736e19b35ff72a8d9e0348a Mon Sep 17 00:00:00 2001 From: kramm Date: Mon, 18 Jun 2007 07:30:27 +0000 Subject: [PATCH] fixed fileversion tag --- lib/rfxswf.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/lib/rfxswf.c b/lib/rfxswf.c index 4b64b83..257d41b 100644 --- a/lib/rfxswf.c +++ b/lib/rfxswf.c @@ -1282,15 +1282,6 @@ int swf_WriteSWF2(writer_t*writer, SWF * swf) // Writes SWF to file, return if(writer) writer_lastpos = writer->pos; - if(swf->fileVersion >= 8) { - if ((swf->firstTag && swf->firstTag->id != ST_FILEATTRIBUTES) && - (!swf->firstTag->next || swf->firstTag->next->id != ST_FILEATTRIBUTES)) - { - U32 flags = 0; // | 128 = usenetwork, | 8 = hasmetadata - swf_SetU32(swf_InsertTagBefore(swf, swf->firstTag,ST_FILEATTRIBUTES),flags); - } - } - // Insert REFLEX Tag #ifdef INSERT_RFX_TAG @@ -1302,6 +1293,14 @@ int swf_WriteSWF2(writer_t*writer, SWF * swf) // Writes SWF to file, return } #endif // INSERT_RFX_TAG + + if(swf->fileVersion >= 8) { + if (swf->firstTag && swf->firstTag->id != ST_FILEATTRIBUTES) + { + U32 flags = 0; // | 128 = usenetwork, | 8 = hasmetadata + swf_SetU32(swf_InsertTagBefore(swf, swf->firstTag,ST_FILEATTRIBUTES),flags); + } + } // Count Frames + File Size -- 1.7.10.4