X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=src%2Fgif2swf.c;h=0d51d6c8780b4d2ea2fc6c0804f0af42ed164b96;hp=a6eb8367ed660987db6255545b8b3eef52e6746c;hb=f0f4599a8cc05f18859d2bb8d0afe447f3e00813;hpb=51c668515519b6b9671540365bb333f7fad7c874 diff --git a/src/gif2swf.c b/src/gif2swf.c index a6eb836..0d51d6c 100644 --- a/src/gif2swf.c +++ b/src/gif2swf.c @@ -1,6 +1,6 @@ /* -*- mode: c; tab-width: 4; -*- ---------------------------[for (x)emacs]-- - $Id: gif2swf.c,v 1.5 2005/05/11 17:20:29 dseg Exp $ + $Id: gif2swf.c,v 1.7 2008/02/08 11:43:12 kramm Exp $ GIF to SWF converter tool Part of the swftools package. @@ -184,13 +184,8 @@ int MovieFinish(SWF * swf, TAG * t, char *sname) if FAILED (swf_WriteCGI(swf)) fprintf(stderr, "WriteCGI() failed.\n"); } else { - if (global.version >= 6) { - if (swf_WriteSWC(f, swf) < 0) - fprintf(stderr, "Unable to write output file: %s\n", sname); - } else { - if (swf_WriteSWF(f, swf) < 0) - fprintf(stderr, "Unable to write output file: %s\n", sname); - } + if (swf_WriteSWF(f, swf) < 0) + fprintf(stderr, "Unable to write output file: %s\n", sname); if (f != so) close(f); } @@ -605,16 +600,16 @@ int args_callback_option(char *arg, char *val) } static struct options_t options[] = { - {"l", "loop"}, - {"r", "rate"}, - {"o", "output"}, - {"z", "zlib"}, - {"X", "pixel"}, - {"Y", "pixel"}, - {"v", "verbose"}, - {"C", "cgi"}, - {"V", "version"}, - {0, 0} +{"r", "rate"}, +{"o", "output"}, +{"z", "zlib"}, +{"l", "loop"}, +{"X", "pixel"}, +{"Y", "pixel"}, +{"v", "verbose"}, +{"C", "cgi"}, +{"V", "version"}, +{0,0} }; int args_callback_longoption(char *name, char *val) @@ -646,13 +641,12 @@ int args_callback_command(char *arg, char *next) // actually used as filename void args_callback_usage(char *name) { printf("\n"); - printf("Usage: %s [-X width] [-Y height] [-o file.swf] [-r rate] file1.gif [file2.gif...]\n", - name); + printf("Usage: %s [-X width] [-Y height] [-o file.swf] [-r rate] file1.gif [file2.gif ...]\n", name); printf("\n"); - printf("-l , --loop Set loop count. (default: 0 [=infinite loop])\n"); printf("-r , --rate Set movie framerate (frames per second)\n"); printf("-o , --output Set name for SWF output file.\n"); printf("-z , --zlib Enable Flash 6 (MX) Zlib Compression\n"); + printf("-l , --loop Set loop count. (default: 0 [=infinite loop])\n"); printf("-X , --pixel Force movie width to (default: autodetect)\n"); printf("-Y , --pixel Force movie height to (default: autodetect)\n"); printf("-v , --verbose Set verbose level (0=quiet, 1=default, 2=debug)\n");