From 0fe87a3cb0b848bd6099be53315f0b272d378b90 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 5 Mar 2007 00:45:21 +0100 Subject: [PATCH] aac_afh.c: Make "handle" a local variable Also, clean up the definition of static variables. --- aac_afh.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/aac_afh.c b/aac_afh.c index e68004b2..956ff6da 100644 --- a/aac_afh.c +++ b/aac_afh.c @@ -34,15 +34,10 @@ /** size of the input buffer, must be big enough to hold header */ #define DEFAULT_INBUF_SIZE 65536 +static struct audio_format_handler *af; static FILE *infile; -static int inbuf_size; static unsigned char *inbuf; -static size_t inbuf_len; -static struct audio_format_handler *af; -static size_t num_chunks; - -static size_t *chunk_table; -static NeAACDecHandle handle; +static size_t inbuf_size, inbuf_len, *chunk_table, num_chunks; static void aac_close_audio_file(void) { @@ -143,6 +138,7 @@ static int aac_get_file_info(FILE *file, char *info_str, long unsigned *frames, unsigned long rate = 0; unsigned char channels = 0; mp4AudioSpecificConfig mp4ASC; + NeAACDecHandle handle; inbuf_size = DEFAULT_INBUF_SIZE; inbuf = para_malloc(inbuf_size); -- 2.39.5