git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
42588d6
)
fixed fileversion tag
author
kramm
<kramm>
Mon, 18 Jun 2007 07:30:27 +0000
(07:30 +0000)
committer
kramm
<kramm>
Mon, 18 Jun 2007 07:30:27 +0000
(07:30 +0000)
lib/rfxswf.c
patch
|
blob
|
history
diff --git
a/lib/rfxswf.c
b/lib/rfxswf.c
index
4b64b83
..
257d41b
100644
(file)
--- 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(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
// 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
}
#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
// Count Frames + File Size