From: Andre Noll Date: Sun, 4 Mar 2007 23:45:21 +0000 (+0100) Subject: aac_afh.c: Make "handle" a local variable X-Git-Tag: v0.2.16~49 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=0fe87a3cb0b848bd6099be53315f0b272d378b90 aac_afh.c: Make "handle" a local variable Also, clean up the definition of static variables. --- 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);