Without this, we're leaking one fd per audio file...
static size_t *chunk_table;
NeAACDecHandle handle;
-
static void aac_close_audio_file(void)
{
+ if (!infile)
+ return;
+ fclose(infile);
+ infile = NULL;
}
static int aac_find_stsz(unsigned char *buf, unsigned buflen, size_t *skip)
return (char *)inbuf;
}
+/** the init function of the aac audio format handler */
void aac_afh_init(void *p)
{
af = p;