From: Andre Date: Sat, 13 May 2006 16:37:45 +0000 (+0200) Subject: aac afh: do not send the huge audio file header X-Git-Tag: v0.2.14~127 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=1a1048fc81f384826d4cd7416de931f4b6c5646e;p=paraslash.git aac afh: do not send the huge audio file header --- diff --git a/aac_afh.c b/aac_afh.c index 93d3bec8..92b70915 100644 --- a/aac_afh.c +++ b/aac_afh.c @@ -215,14 +215,11 @@ static char *aac_read_chunk(long unsigned current_chunk, ssize_t *len) if (current_chunk >= num_chunks) return NULL; if (!current_chunk) { - *len = entry; - pos = 0; - } else if (current_chunk == 1) { *len = chunk_table[0]; pos = entry; } else { - *len = chunk_table[current_chunk - 1] - chunk_table[current_chunk - 2]; - pos = entry + chunk_table[current_chunk - 2]; + *len = chunk_table[current_chunk] - chunk_table[current_chunk - 1]; + pos = entry + chunk_table[current_chunk - 1]; } if (inbuf_size < *len) { inbuf = para_realloc(inbuf, *len);