From bbdfe9b60d66ce42e89653303d07870f91b721dd Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 4 Mar 2007 23:39:13 +0100 Subject: [PATCH] ogg_afh.c: Kill superflous vi_channels --- ogg_afh.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ogg_afh.c b/ogg_afh.c index a3e0f691..2e3ed72c 100644 --- a/ogg_afh.c +++ b/ogg_afh.c @@ -36,7 +36,7 @@ static double chunk_time = 0.25; 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; @@ -253,7 +253,6 @@ static int ogg_get_file_info(FILE *file, char *info_str, long unsigned *frames, 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; @@ -261,7 +260,7 @@ static int ogg_get_file_info(FILE *file, char *info_str, long unsigned *frames, "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; -- 2.30.2