X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=ogg_afh.c;h=fcc88362981c815cd0a04823d504a7ea4df5dec0;hp=70cd9f6439286503847709d2a165ca32132d74f1;hb=0bd031509add6dccedb04a1e79420a7a9ca02711;hpb=1340485877e90df2af6355fefb079a1ffad4cfd0 diff --git a/ogg_afh.c b/ogg_afh.c index 70cd9f64..fcc88362 100644 --- a/ogg_afh.c +++ b/ogg_afh.c @@ -35,7 +35,7 @@ static double chunk_time = 0.25; 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; @@ -203,7 +203,7 @@ static void ogg_close_audio_file(void) num_chunks = 0; free(inbuf); inbuf = NULL; - oggbuf_len = 0; + inbuf_size = 0; } static int ogg_save_header(FILE *file, int len) @@ -318,11 +318,11 @@ static char *ogg_read_chunk(long unsigned current_chunk, ssize_t *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) {