static OggVorbis_File *oggvorbis_file;
static FILE *infile;
-static int header_len, vi_channels;
+static int header_len;
static char *header;
static ssize_t *chunk_table, max_chunk_len, num_chunks;
static struct audio_format_handler *af;
vi_sampling_rate = vi->rate;
vi_bitrate = ov_bitrate(oggvorbis_file, 0);
vi_bitrate_nominal = vi->bitrate_nominal;
- vi_channels = vi->channels;
ogg_compute_chunk_table(time_total);
*frames = num_chunks;
*vss_chunk_table = chunk_table;
"audio_file_info2: \n"
"audio_file_info3: \n",
num_chunks, (long unsigned) (chunk_time * 1000 * 1000),
- vi_sampling_rate / 1000, vi_channels, vi_bitrate / 1000
+ vi_sampling_rate / 1000, vi->channels, vi_bitrate / 1000
);
rewind(file);
return 1;