fix divide-by-zero bug. Doh

This commit is contained in:
Ron Pedde 2005-02-05 21:22:47 +00:00
parent d0e71cbec8
commit 70ea2d7561
1 changed files with 1 additions and 1 deletions

View File

@ -1211,7 +1211,7 @@ int scan_get_aacfileinfo(char *file, MP3FILE *pmp3) {
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);
}