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

Ralph Giles giles at xiph.org
Sun Aug 12 22:37:50 PDT 2001



giles       01/08/12 22:37:50

  Modified:    oggenc   oggenc.c
  Log:
  getopt options string was marking the wrong 'q' as the quality option.

Revision  Changes    Path
1.23      +3 -3      vorbis-tools/oggenc/oggenc.c

Index: oggenc.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/oggenc/oggenc.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- oggenc.c	2001/08/13 05:18:42	1.22
+++ oggenc.c	2001/08/13 05:37:49	1.23
@@ -411,7 +411,7 @@
         int ret;
         int option_index = 1;
 
-	while((ret = getopt_long(argc, argv, "a:b:B:c:C:d:e:hl:m:M:n:N:o:qQ:rR:s:t:v", 
+	while((ret = getopt_long(argc, argv, "a:b:B:c:C:d:e:hl:m:M:n:N:o:q:QrR:s:t:v", 
                                         long_options, &option_index)) != -1)
         {
                 switch(ret)
@@ -465,9 +465,9 @@
                                         opt->quality = 1.0f;
                                         fprintf(stderr, "WARNING: quality setting too high, setting to maximum quality.\n");
                                 }
-				else if(opt->quality < 0.f)
+				else if(opt->quality < 0.0f)
                                 {
-					opt->quality = 0.f;
+					opt->quality = 0.0f;
                                         fprintf(stderr, "WARNING: negative quality specified, setting to minimum.\n");
                                 }
                                 break;

--- >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