static OggVorbis_File *oggvorbis_file;
static FILE *infile;
-static int header_len, oggbuf_len, vi_channels;
+static int header_len, inbuf_size, vi_channels;
static char *header, *inbuf;
static ssize_t *chunk_table, max_chunk_len;
static struct audio_format_handler *af;
num_chunks = 0;
free(inbuf);
inbuf = NULL;
- oggbuf_len = 0;
+ inbuf_size = 0;
}
static int ogg_save_header(FILE *file, int len)
return NULL;
}
*len = cs;
- if (!inbuf || oggbuf_len < *len) {
+ if (!inbuf || inbuf_size < *len) {
PARA_INFO_LOG("increasing ogg buffer size (%d -> %zu)\n",
- oggbuf_len, *len);
+ inbuf_size, *len);
inbuf = para_realloc(inbuf, *len);
- oggbuf_len = *len;
+ inbuf_size = *len;
}
ret = read(fileno(infile), inbuf, *len);
if (!ret) {