From f243d8484f4c4d9d2833ed6ca955621ede48a9ab Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 28 Jun 2008 18:43:22 +0200 Subject: [PATCH] mp3_read_info(): Kill fl_avg. The average frame length is computed but not used anywhere. --- mp3_afh.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; -- 2.39.5