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:
1674085
)
only write out extra tags if we're not only writing the header
author
Matthias Kramm
<kramm@quiss.org>
Mon, 19 Jan 2009 01:20:07 +0000
(17:20 -0800)
committer
Matthias Kramm
<kramm@quiss.org>
Mon, 19 Jan 2009 01:20:07 +0000
(17:20 -0800)
lib/rfxswf.c
patch
|
blob
|
history
diff --git
a/lib/rfxswf.c
b/lib/rfxswf.c
index
de39599
..
93f5db5
100644
(file)
--- a/
lib/rfxswf.c
+++ b/
lib/rfxswf.c
@@
-1591,7
+1591,9
@@
int swf_WriteSWF2(writer_t*writer, SWF * swf) // Writes SWF to file, return
t = swf->firstTag;
frameCount = 0;
- len += WriteExtraTags(swf, 0);
+ if(swf->firstTag && !no_extra_tags) {
+ len += WriteExtraTags(swf, 0);
+ }
while(t) {
len += swf_WriteTag(-1,t);
if(t->id == ST_DEFINESPRITE && !swf_IsFolded(t)) inSprite++;
@@
-1673,7
+1675,7
@@
int swf_WriteSWF2(writer_t*writer, SWF * swf) // Writes SWF to file, return
return -1;
}
- if(!no_extra_tags) {
+ if(swf->firstTag && !no_extra_tags) {
WriteExtraTags(swf, writer);
}
t = swf->firstTag;