From: kramm Date: Sat, 30 Oct 2004 15:11:27 +0000 (+0000) Subject: always set the version to 6 if the file is zlib-compressed. X-Git-Tag: release-0-6-3~239 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=5f963ea2ff1243b25634bd380bbc0c0fe4c448ec always set the version to 6 if the file is zlib-compressed. --- diff --git a/src/swfcombine.c b/src/swfcombine.c index 403419d..78af839 100644 --- a/src/swfcombine.c +++ b/src/swfcombine.c @@ -288,7 +288,7 @@ static void makestackmaster(SWF*swf) 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; @@ -1218,9 +1218,11 @@ int main(int argn, char *argv[]) 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); - else { + } else { newswf.compressed = 0; swf_WriteSWF(fi, &newswf); }