test/write_read.c : Move delaration before first statement.
authorerikd <erikd@xiph.org>
Sat, 1 Sep 2007 04:26:27 +0000 (04:26 +0000)
committererikd <erikd@xiph.org>
Sat, 1 Sep 2007 04:26:27 +0000 (04:26 +0000)
svn path=/trunk/vorbis/; revision=13685

test/write_read.c

index 803aae0..6fe4aae 100644 (file)
@@ -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 @@ write_vorbis_data_or_die (const char *filename, int srate, const float * data, i
   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);