From: kramm Date: Thu, 16 May 2002 22:57:37 +0000 (+0000) Subject: * default output is now output.swf. X-Git-Tag: xpdf-0-92~6 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=dc4643c46a78e973154494161af6deabe75eae6e * default output is now output.swf. * fixed command-line parsing bug. --- diff --git a/src/jpeg2swf.c b/src/jpeg2swf.c index 717c750..3d5e54c 100644 --- a/src/jpeg2swf.c +++ b/src/jpeg2swf.c @@ -64,7 +64,7 @@ int MovieFinish(SWF * swf,TAG * t,char * sname) if ((!isatty(so))&&(!sname)) handle = so; else - { if (!sname) sname = "out.swf"; + { if (!sname) sname = "output.swf"; handle = open(sname,O_RDWR|O_CREAT|O_TRUNC,0666); } if FAILED(swf_WriteSWF(handle,swf)) if (VERBOSE(1)) fprintf(stderr,"Unable to write output file: %s\n",sname); @@ -278,7 +278,8 @@ int args_callback_option(char*arg,char*val) } if (res<0) - { if (VERBOSE(1)) fprintf(stderr,"Unknown option: -v%s\n",arg); + { if (VERBOSE(1)) fprintf(stderr,"Unknown option: -%s\n",arg); + exit(1); return 0; } return res;