mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 07:05:57 -05:00
Calculate bitrate without header
This commit is contained in:
parent
d2bb534ddd
commit
2072b9eaf2
@ -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);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user