]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
mp3_read_info(): Kill fl_avg.
authorAndre Noll <maan@systemlinux.org>
Sat, 28 Jun 2008 16:43:22 +0000 (18:43 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 28 Jun 2008 16:43:22 +0000 (18:43 +0200)
The average frame length is computed but not used anywhere.

mp3_afh.c

index 18f5dc48e0d407cd30b71c50e4b75fa5385fa338..a9d36fa16a93226d581105321a0ea79d09d804c8 100644 (file)
--- a/mp3_afh.c
+++ b/mp3_afh.c
@@ -323,7 +323,7 @@ static int find_valid_start(unsigned char *map, size_t numbytes, off_t *fpos,
 static int mp3_read_info(unsigned char *map, size_t numbytes,
                struct afh_info *afhi)
 {
-       long fl_avg = 0, freq_avg = 0, br_avg = 0;
+       long freq_avg = 0, br_avg = 0;
        int ret, len = 0, old_br = -1;
        struct timeval total_time = {0, 0};
        unsigned chunk_table_size = 1000; /* gets increased on demand */
@@ -373,11 +373,9 @@ static int mp3_read_info(unsigned char *map, size_t numbytes,
                        freq_avg = freq;
                        br_avg = br;
                        old_br = br;
-                       fl_avg = fl;
                        continue;
                }
                freq_avg += ((long)freq - freq_avg) / ((long)afhi->chunks_total + 1);
-               fl_avg += ((long)fl - fl_avg) / ((long)afhi->chunks_total + 1);
                br_avg += ((long)br - br_avg) / ((long)afhi->chunks_total + 1);
                if (old_br != br)
                        mp3.vbr = 1;