From: Andre Noll Date: Sun, 11 Mar 2007 16:52:59 +0000 (+0100) Subject: aac_afh.c: Kill global variable af X-Git-Tag: v0.2.16~37 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=be6c2a6c1f1e722d5163811d070131d345b58e66;p=paraslash.git aac_afh.c: Kill global variable af It's only used in aac_afh_init. --- 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; }