[xiph-commits] r13685 - trunk/vorbis/test

erikd at svn.xiph.org erikd at svn.xiph.org
Fri Aug 31 21:26:27 PDT 2007


Author: erikd
Date: 2007-08-31 21:26:27 -0700 (Fri, 31 Aug 2007)
New Revision: 13685

Modified:
   trunk/vorbis/test/write_read.c
Log:
test/write_read.c : Move delaration before first statement.

Modified: trunk/vorbis/test/write_read.c
===================================================================
--- trunk/vorbis/test/write_read.c	2007-09-01 03:17:21 UTC (rev 13684)
+++ trunk/vorbis/test/write_read.c	2007-09-01 04:26:27 UTC (rev 13685)
@@ -24,7 +24,7 @@
 #include <vorbis/codec.h>
 #include <vorbis/vorbisenc.h>
 
-/* Why oh why, oh why is it so difficult to read and write Ogg/Vorbis files. */
+#include "write_read.h"
 
 /* The following function is basically a hacked version of the code in
  * examples/encoder_example.c */
@@ -40,13 +40,13 @@
   vorbis_dsp_state vd;
   vorbis_block     vb;
 
+  int eos = 0, ret;
+
   if ((file = fopen (filename, "wb")) == NULL) {
     printf("\n\nError : fopen failed : %s\n", strerror (errno)) ;
     exit (1) ;
   }
 
-  int eos = 0, ret;
-
   /********** Encode setup ************/
 
   vorbis_info_init (&vi);



More information about the commits mailing list