The average frame length is computed but not used anywhere.
static int mp3_read_info(unsigned char *map, size_t numbytes,
struct afh_info *afhi)
{
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 */
int ret, len = 0, old_br = -1;
struct timeval total_time = {0, 0};
unsigned chunk_table_size = 1000; /* gets increased on demand */
freq_avg = freq;
br_avg = br;
old_br = br;
freq_avg = freq;
br_avg = br;
old_br = br;
continue;
}
freq_avg += ((long)freq - freq_avg) / ((long)afhi->chunks_total + 1);
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;
br_avg += ((long)br - br_avg) / ((long)afhi->chunks_total + 1);
if (old_br != br)
mp3.vbr = 1;