From 026a47094ea4f12def7b63aab81f5b1f3622a173 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 4 Mar 2007 23:56:21 +0100 Subject: [PATCH] ogg_afh.c: get rid of global variable max_chunk_len It's only used in ogg_compute_chunk_table(). So make it a local variable. --- ogg_afh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ogg_afh.c b/ogg_afh.c index 6ca31a58..e7136ff8 100644 --- a/ogg_afh.c +++ b/ogg_afh.c @@ -37,7 +37,7 @@ static double chunk_time = 0.25; static OggVorbis_File *oggvorbis_file; static int header_len; static char *header; -static ssize_t *chunk_table, max_chunk_len, num_chunks; +static ssize_t *chunk_table, num_chunks; static struct audio_format_handler *af; static long vi_sampling_rate, vi_bitrate, vi_bitrate_nominal; @@ -151,7 +151,7 @@ static void tunetable(void) static void ogg_compute_chunk_table(double time_total) { int i, ret, num; - ssize_t pos = 0, min = 0, old_pos; + ssize_t max_chunk_len, pos = 0, min = 0, old_pos; old_pos = 0; ret = 0; -- 2.30.2