From 2072b9eaf25a17b3e81c3f2f5e976be252c51da8 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Sun, 4 Jun 2006 04:51:52 +0000 Subject: [PATCH] Calculate bitrate without header --- src/scan-mp3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scan-mp3.c b/src/scan-mp3.c index d498dada..3eee893f 100644 --- a/src/scan-mp3.c +++ b/src/scan-mp3.c @@ -977,7 +977,7 @@ int scan_mp3_get_mp3fileinfo(char *file, MP3FILE *pmp3) { } /* back-calculate bitrate from duration */ - pmp3->bitrate = ((pmp3->file_size / 1000) * 8) / + pmp3->bitrate = ((file_size / 1000) * 8) / (pmp3->song_length / 1000); }