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:
de3f74f
)
added writing of flash 8 setattributes tag
author
kramm
<kramm>
Sat, 13 Jan 2007 17:25:04 +0000
(17:25 +0000)
committer
kramm
<kramm>
Sat, 13 Jan 2007 17:25:04 +0000
(17:25 +0000)
lib/rfxswf.c
patch
|
blob
|
history
diff --git
a/lib/rfxswf.c
b/lib/rfxswf.c
index
29a13ea
..
b986c83
100644
(file)
--- 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(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