/** 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;
/** 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;
}