#define FRAME_HEADER_SIZE 4
#define MIN_FRAME_SIZE 21
-#define DEFAULT_INBUF_SIZE 8192
struct mp3header {
unsigned long sync;
static FILE *infile;
static struct mp3info mp3;
-static char *inbuf;
-static size_t inbuf_size;
static struct audio_format_handler *af;
static ssize_t *chunk_table, num_chunks;
unsigned chunk_table_size = 1000; /* gets increased on demand */
num_chunks = 0;
- inbuf = para_malloc(DEFAULT_INBUF_SIZE);
- inbuf_size = DEFAULT_INBUF_SIZE;
chunk_table = para_malloc(chunk_table_size * sizeof(size_t));
ret = mp3_get_id3();
if (ret < 0)
err_out:
PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret));
free(chunk_table);
- free(inbuf);
return ret;
}
fclose(infile);
infile = NULL;
free(chunk_table);
- free(inbuf);
}
static const char* mp3_suffixes[] = {"mp3", NULL};