mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -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 */
|
/* 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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user