ogg_afh.c: get rid of global variable max_chunk_len
authorAndre Noll <maan@systemlinux.org>
Sun, 4 Mar 2007 22:56:21 +0000 (23:56 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 4 Mar 2007 22:56:21 +0000 (23:56 +0100)
It's only used in ogg_compute_chunk_table(). So make it a local variable.

ogg_afh.c

index 6ca31a58c063eaeee9f1bd057e5857d7f2e169dd..e7136ff8c48447be72248476b65e079ac50731eb 100644 (file)
--- 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 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;
 
 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;
 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;
 
        old_pos = 0;
        ret = 0;