X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fpng2swf.c;h=2146ef7d3ce9c1c8937b28ce8351052f0f406ed7;hb=9920f31d5204693619eb64cbbcfa7d472f40e79f;hp=6cf4189ca0636c9c63a5aba9bd7bdd734104c599;hpb=eeb31b425e73e967eb830e2523c6bf789c28fe09;p=swftools.git diff --git a/src/png2swf.c b/src/png2swf.c index 6cf4189..2146ef7 100644 --- a/src/png2swf.c +++ b/src/png2swf.c @@ -779,7 +779,9 @@ int args_callback_option(char *arg, char *val) case 'r': if (val) global.framerate = atof(val); - if ((global.framerate < 1.0/256) ||(global.framerate >= 256.0)) { + /* removed framerate>0 restriction in order to make + Flash Communication Server compatible SWFs */ + if ((global.framerate < 0) ||(global.framerate >= 256.0)) { if (VERBOSE(1)) fprintf(stderr, "Error: You must specify a valid framerate between 1/256 and 255.\n");