[xiph-cvs] cvs commit: vorbis-tools/oggdec oggdec.c

Michael Smith msmith at xiph.org
Tue Jul 2 07:57:33 PDT 2002



msmith      02/07/02 07:57:33

  Modified:    oggdec   oggdec.c
  Log:
  -o was broken in previous commit.

Revision  Changes    Path
1.6       +1 -7      vorbis-tools/oggdec/oggdec.c

Index: oggdec.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/oggdec/oggdec.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- oggdec.c	2002/07/02 14:51:01	1.5
+++ oggdec.c	2002/07/02 14:57:33	1.6
@@ -68,7 +68,7 @@
     int option_index = 1;
     int ret;
 
-    while((ret = getopt_long(argc, argv, "Qhvb:e:r:s:", 
+    while((ret = getopt_long(argc, argv, "Qhvb:e:r:s:o:", 
                     long_options, &option_index)) != -1)
     {
         switch(ret)
@@ -296,12 +296,6 @@
 
     if(optind >= argc) {
         fprintf(stderr, "ERROR: No input files specified. Use -h for help\n");
-        return 1;
-    }
-
-    if((argc - optind) % 2 != 0) {
-        fprintf(stderr, "ERROR: Not enough output files specified. See usage (below) for details.\n");
-        usage();
         return 1;
     }
 

<p><p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list