From be6c2a6c1f1e722d5163811d070131d345b58e66 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 11 Mar 2007 17:52:59 +0100 Subject: [PATCH] aac_afh.c: Kill global variable af It's only used in aac_afh_init. --- aac_afh.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/aac_afh.c b/aac_afh.c index cd374c81..58e23857 100644 --- a/aac_afh.c +++ b/aac_afh.c @@ -33,7 +33,6 @@ /** size of the input buffer, must be big enough to hold header */ #define AAC_INBUF_SIZE 65536 -static struct audio_format_handler *af; static FILE *infile; static unsigned char *inbuf; static size_t inbuf_len; @@ -188,8 +187,7 @@ static const char* aac_suffixes[] = {"m4a", "mp4", NULL}; /** the init function of the aac audio format handler */ void aac_afh_init(struct audio_format_handler *p) { - af = p; - af->get_file_info = aac_get_file_info, - af->close_audio_file = aac_close_audio_file; - af->suffixes = aac_suffixes; + p->get_file_info = aac_get_file_info, + p->close_audio_file = aac_close_audio_file; + p->suffixes = aac_suffixes; } -- 2.39.5