From: Andre Noll Date: Sat, 28 Jun 2008 16:43:22 +0000 (+0200) Subject: mp3_read_info(): Kill fl_avg. X-Git-Tag: v0.3.3~53^2~10 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=f243d8484f4c4d9d2833ed6ca955621ede48a9ab mp3_read_info(): Kill fl_avg. The average frame length is computed but not used anywhere. --- diff --git a/mp3_afh.c b/mp3_afh.c index 18f5dc48..a9d36fa1 100644 --- 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;