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:
ba50f04
)
always set the version to 6 if the file is zlib-compressed.
author
kramm
<kramm>
Sat, 30 Oct 2004 15:11:27 +0000
(15:11 +0000)
committer
kramm
<kramm>
Sat, 30 Oct 2004 15:11:27 +0000
(15:11 +0000)
src/swfcombine.c
patch
|
blob
|
history
diff --git
a/src/swfcombine.c
b/src/swfcombine.c
index
403419d
..
78af839
100644
(file)
--- a/
src/swfcombine.c
+++ b/
src/swfcombine.c
@@
-288,7
+288,7
@@
static void makestackmaster(SWF*swf)
TAG*tag;
int t;
SRECT box;
TAG*tag;
int t;
SRECT box;
- int fileversion = 1;
+ int fileversion = config.zlib?6:3;
int frameRate = 256;
RGBA rgb;
rgb.r=rgb.b=rgb.g=0;
int frameRate = 256;
RGBA rgb;
rgb.r=rgb.b=rgb.g=0;
@@
-1218,9
+1218,11
@@
int main(int argn, char *argv[])
fi = open(outputname, O_BINARY|O_RDWR|O_TRUNC|O_CREAT, 0777);
fi = open(outputname, O_BINARY|O_RDWR|O_TRUNC|O_CREAT, 0777);
- if(config.zlib)
+ if(config.zlib) {
+ if(newswf.fileVersion < 6)
+ newswf.fileVersion = 6;
swf_WriteSWC(fi, &newswf);
swf_WriteSWC(fi, &newswf);
- else {
+ } else {
newswf.compressed = 0;
swf_WriteSWF(fi, &newswf);
}
newswf.compressed = 0;
swf_WriteSWF(fi, &newswf);
}