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

Michael Smith msmith at xiph.org
Mon May 13 01:52:30 PDT 2002



msmith      02/05/13 01:52:30

  Modified:    oggenc   encode.c
  Log:
  Give an error message if someone tries to encode too many channels (apparently
  people actually do try things like this)

Revision  Changes    Path
1.20      +5 -1      vorbis-tools/oggenc/encode.c

Index: encode.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/oggenc/encode.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- encode.c	2002/01/28 05:38:14	1.19
+++ encode.c	2002/05/13 08:52:30	1.20
@@ -41,8 +41,12 @@
         double time_elapsed;
         int ret=0;
 
-	TIMER *timer;
+    if(opt->channels > 255) {
+        fprintf(stderr, _("255 channels should be enough for anyone. (Sorry, vorbis doesn't support more)\n"));
+        return 1;
+    }
 
+	TIMER *timer;
 
         /* get start time. */
         timer = timer_start();

<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