From 3d075bb43197cf3c5dbe23bb78e3b43a5f4bcca1 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 10 Mar 2007 20:35:34 +0100 Subject: [PATCH] ogg_afh.c: Kill tunetable() A rather crappy piece of code that is (1) broken and (2) unneccessary. --- ogg_afh.c | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/ogg_afh.c b/ogg_afh.c index 3056a819..dd0a5405 100644 --- a/ogg_afh.c +++ b/ogg_afh.c @@ -163,31 +163,6 @@ err1: return ret; } -static void tunetable(long unsigned num_chunks) -{ - int i = 1, j = -1, lp = 1; - while (i < num_chunks) { - if (chunk_table[i] == chunk_table[lp]) { - i++; - continue; - } - if (j < 0) - tv_scale(i, &af->chunk_tv, &af->eof_tv); - for (j = lp; j < i; j++) - chunk_table[j] = chunk_table[i]; - lp = i; - } -#if 1 - for (i = 2; i < num_chunks; i++) - if (chunk_table[i] != chunk_table[1]) - break; - lp = i; - for (i = 2; i < num_chunks - lp; i++) - chunk_table[i] = chunk_table[i + lp]; -#endif -} - - /* * Alloc and fill array table of byte offsets. chunk_table[i] is the * offset in the current input file at which the sample containing time i * @@ -226,7 +201,6 @@ static long unsigned ogg_compute_chunk_table(OggVorbis_File *of, } num_chunks = i - 1; chunk_table[i] = pos; -// tunetable(num_chunks); PARA_INFO_LOG("%lu chunks (%fs), max chunk: %zd, min chunk: %zd\n", num_chunks, chunk_time, max_chunk_len, min); return num_chunks; -- 2.39.5