Calculate bitrate without header

This commit is contained in:
Ron Pedde 2006-06-04 04:51:52 +00:00
parent d2bb534ddd
commit 2072b9eaf2

View File

@ -977,7 +977,7 @@ int scan_mp3_get_mp3fileinfo(char *file, MP3FILE *pmp3) {
} }
/* back-calculate bitrate from duration */ /* back-calculate bitrate from duration */
pmp3->bitrate = ((pmp3->file_size / 1000) * 8) / pmp3->bitrate = ((file_size / 1000) * 8) /
(pmp3->song_length / 1000); (pmp3->song_length / 1000);
} }