]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
ogg_afh.c: Kill tunetable()
authorAndre Noll <maan@systemlinux.org>
Sat, 10 Mar 2007 19:35:34 +0000 (20:35 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 10 Mar 2007 19:35:34 +0000 (20:35 +0100)
A rather crappy piece of code that is (1) broken and (2) unneccessary.

ogg_afh.c

index 3056a819b209eff6118748b60137bc92dc684e5a..dd0a54051c4196e6cebac887ec183f317bbe5cf4 100644 (file)
--- 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;