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
#endif // INSERT_RFX_TAG
+ if(swf->fileVersion >= 9) {
+ if ((!swf->firstTag || swf->firstTag->id != ST_SCENEDESCRIPTION) &&
+ (!swf->firstTag ||
+ !swf->firstTag->next || swf->firstTag->next->id != ST_SCENEDESCRIPTION) &&
+ (!swf->firstTag ||
+ !swf->firstTag->next ||
+ !swf->firstTag->next->next || swf->firstTag->next->next->id != ST_SCENEDESCRIPTION))
+ {
+ TAG*scene = swf_InsertTagBefore(swf, swf->firstTag,ST_SCENEDESCRIPTION);
+ swf_SetU16(scene, 1);
+ swf_SetString(scene, "Scene 1");
+ swf_SetU8(scene, 0);
+ }
+ }
+
+ if(swf->fileVersion >= 8) {
+ if (swf->firstTag && swf->firstTag->id != ST_FILEATTRIBUTES)
+ {
+ U32 flags = 0x8; // | 128 = usenetwork, | 8 = hasmetadata
+ swf_SetU32(swf_InsertTagBefore(swf, swf->firstTag,ST_FILEATTRIBUTES),flags);
+ }
+ }
+
// Count Frames + File Size
len = 0;