X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fswfcombine.c;h=8981b1d00659174a046911708bceec67bddeff6b;hb=a4418b8eadbf6f186ad1a8f6965efd9db072790f;hp=0891044cee1e599f6f143f61656009a7d3dc2756;hpb=b3444acae78d8ed5c11ec230d9e571ceffa9d6cf;p=swftools.git diff --git a/src/swfcombine.c b/src/swfcombine.c index 0891044..8981b1d 100644 --- a/src/swfcombine.c +++ b/src/swfcombine.c @@ -137,7 +137,7 @@ int args_callback_option(char*name,char*val) { { 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); } @@ -1125,6 +1125,11 @@ int main(int argn, char *argv[]) msg(" Can't combine --cat and --merge"); exit(1); } + + if(config.stack && config.cat) { + msg(" Can't combine --cat and --stack"); + exit(1); + } if(config.stack) { if(config.overlay) { @@ -1234,6 +1239,12 @@ int main(int argn, char *argv[]) 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; + } } fi = open(outputname, O_BINARY|O_RDWR|O_TRUNC|O_CREAT, 0777);