Commit c0a679a7 authored by erikd's avatar erikd

test/write_read.c : Move delaration before first statement.

svn path=/trunk/vorbis/; revision=13685
parent 022247b4
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment