From dc4643c46a78e973154494161af6deabe75eae6e Mon Sep 17 00:00:00 2001 From: kramm Date: Thu, 16 May 2002 22:57:37 +0000 Subject: [PATCH] * default output is now output.swf. * fixed command-line parsing bug. --- src/jpeg2swf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 1.7.10.4