mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-07 05:10:36 -04:00
fix divide-by-zero bug. Doh
This commit is contained in:
parent
d0e71cbec8
commit
70ea2d7561
@ -1211,7 +1211,7 @@ int scan_get_aacfileinfo(char *file, MP3FILE *pmp3) {
|
|||||||
|
|
||||||
atom_offset=aac_drilltoatom(infile,"mdat",&atom_length);
|
atom_offset=aac_drilltoatom(infile,"mdat",&atom_length);
|
||||||
|
|
||||||
if (atom_offset != -1) {
|
if ((atom_offset != -1) && (pmp3->song_length)) {
|
||||||
pmp3->bitrate = atom_length / ((pmp3->song_length / 1000) * 128);
|
pmp3->bitrate = atom_length / ((pmp3->song_length / 1000) * 128);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user