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

Jack Moffitt jack at xiph.org
Fri Dec 7 18:23:01 PST 2001



jack        01/12/07 18:23:01

  Modified:    oggenc   audio.c
  Log:
  Damnit.  This patch went to the wrong branch.

Revision  Changes    Path
1.19      +6 -6      vorbis-tools/oggenc/audio.c

Index: audio.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/oggenc/audio.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- audio.c	2001/12/03 14:48:04	1.18
+++ audio.c	2001/12/08 02:23:01	1.19
@@ -357,13 +357,13 @@
                 return 0; /* Weird format chunk */
         }
 
-	/* A common error is to have an 18-byte format chunk with the last two
-	 * bytes 0. This is incorrect, but sufficiently common that we only warn
-	 * about it instead of refusing it. 
-	 * Please, if you have a program that's creating these 18 byte chunks, send
-	 * a bug report to whoever makes it 
+	/* A common error is to have a format chunk that is not 16 or 18 bytes
+	 * in size.  This is incorrect, but not fatal, so we only warn about 
+	 * it instead of refusing to work with the file.  Please, if you
+	 * have a program that's creating format chunks of sizes other than
+	 * 16 or 18 bytes in size, report a bug to the author.
          */
-	if(len!=16)
+	if(len!=16 && len!=18)
                 fprintf(stderr, 
                                 "Warning: INVALID format chunk in wav header.\n"
                                 " Trying to read anyway (may not work)...\n");

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