From: Andre Noll Date: Sun, 4 Mar 2007 22:56:21 +0000 (+0100) Subject: ogg_afh.c: get rid of global variable max_chunk_len X-Git-Tag: v0.2.16~56 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=026a47094ea4f12def7b63aab81f5b1f3622a173 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. --- 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;