Fixed bitrate calculation.

This commit is contained in:
vspader 2008-02-20 01:09:15 +00:00
parent 86a63b1efc
commit a54f6ecfe5

View file

@ -271,7 +271,7 @@
}
}
bitrate = (((_fileSize - id3_length)*8)/1000) * (sampleRate/totalFrames);
bitrate = ((double)((_fileSize - id3_length)*8)/1000.0) * (sampleRate/(double)totalFrames);
mad_frame_finish (&frame);
mad_stream_finish (&stream);