{
float rate = atof(val);
- if ((rate < 1.0/256) ||(rate >= 256.0)) {
+ if ((rate < 0) ||(rate >= 256.0)) {
fprintf(stderr, "Error: You must specify a valid framerate between 1/256 and 255.\n");
exit(1);
}
slaveid = -1;
slaveframe = -1;
+ if(!master->fileVersion && slave)
+ master->fileVersion = slave->fileVersion;
+
swf_FoldAll(master);
swf_FoldAll(slave);
if(config.isframe)
{
- int tmp;
- if(slavename && slavename[0]!='#' && (sscanf(slavename, "%d", &tmp) ==
- strlen(slavename))) {
- /* if the name the slave should replace
- consists only of digits and the -f
- option is given, it probably is not
- a frame name but a frame number.
- */
- slaveid = tmp;
- slavename = 0;
+ if(slavename && slavename[0]!='#') {
+ int tmp;
+ int len;
+ sscanf(slavename, "%d%n", &tmp, &len);
+ if(len == strlen(slavename)) {
+ /* if the name the slave should replace
+ consists only of digits and the -f
+ option is given, it probably is not
+ a frame name but a frame number.
+ */
+ slaveid = tmp;
+ slavename = 0;
+ }
}
if(slaveid>=0) {
msg("<error> Can't combine --cat and --merge");
exit(1);
}
+
+ if(config.stack && config.cat) {
+ msg("<error> Can't combine --cat and --stack");
+ exit(1);
+ }
if(config.stack) {
if(config.overlay) {
memset(&slave, 0, sizeof(slave));
slave.firstTag = swf_InsertTag(0, ST_END);
slave.frameRate = 0;
- slave.fileVersion = 4;
+ slave.fileVersion = 0;
slave.frameCount = 0;
}
combine(&master, slave_name[t], &slave, &newswf);
master = newswf;
}
+ if(config.dummy && !config.hassizex && !config.hassizey && !config.mastermovex && !config.mastermovey) {
+ newswf.movieSize.xmin = newswf.movieSize.xmin*config.masterscalex;
+ newswf.movieSize.ymin = newswf.movieSize.ymin*config.masterscaley;
+ newswf.movieSize.xmax = newswf.movieSize.xmax*config.masterscalex;
+ newswf.movieSize.ymax = newswf.movieSize.ymax*config.masterscaley;
+ }
}
+ if(!newswf.fileVersion)
+ newswf.fileVersion = 4;
+
fi = open(outputname, O_BINARY|O_RDWR|O_TRUNC|O_CREAT, 0777);
if(config.zlib) {