aac_afh.c: Kill global variable af
[paraslash.git] / aac_afh.c
index cd374c818709e6a520910b7c58cc55df5071a2e9..58e238572eb89c1d233491fe1ef426e6b012af9f 100644 (file)
--- 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;
 }