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

Michael Smith msmith at xiph.org
Tue Jul 2 08:01:47 PDT 2002



msmith      02/07/02 08:01:47

  Modified:    oggdec   oggdec.c
  Log:
  use .raw if output is raw, instead of .wav

Revision  Changes    Path
1.7       +4 -1      vorbis-tools/oggdec/oggdec.c

Index: oggdec.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/oggdec/oggdec.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- oggdec.c	2002/07/02 14:57:33	1.6
+++ oggdec.c	2002/07/02 15:01:46	1.7
@@ -324,7 +324,10 @@
             out = malloc(strlen(argv[i]) + 10);
             strncpy(out, argv[i], end-argv[i]);
             out[end-argv[i]] = 0;
-            strcat(out, ".wav");
+            if(raw)
+                strcat(out, ".raw");
+            else
+                strcat(out, ".wav");
         }
 
         if(decode_file(in,out))

<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