From 1a1048fc81f384826d4cd7416de931f4b6c5646e Mon Sep 17 00:00:00 2001 From: Andre Date: Sat, 13 May 2006 18:37:45 +0200 Subject: [PATCH] aac afh: do not send the huge audio file header --- aac_afh.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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); -- 2.30.2