X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.c;h=b986c838610c8c691aac62f769ba473099a9be50;hb=b297c77630e356035a75d9c4297ba1d6ed424b16;hp=29a13ea0845d52ca84478d8cd74e4809dddd775f;hpb=d5d595db551150511bacf91e0037908020bcf394;p=swftools.git diff --git a/lib/rfxswf.c b/lib/rfxswf.c index 29a13ea..b986c83 100644 --- a/lib/rfxswf.c +++ b/lib/rfxswf.c @@ -1236,6 +1236,15 @@ 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