Fixed mp3 desynch due to a stupid cast

svn-id: r3873
This commit is contained in:
Nicolas Bacca 2002-04-05 06:08:22 +00:00
parent a37a4b6f3b
commit 4a3f14b2f7

View File

@ -162,7 +162,7 @@ uint32 calc_cd_file_offset(int start_frame) {
//mad_timer_t timer; - recode with timer
/* Constant bit rate - perhaps not fully accurate */
frame_size = (float)144 * _mad_header.bitrate / _mad_header.samplerate;
frame_size = 144 * _mad_header.bitrate / _mad_header.samplerate;
offset = (long)((float)start_frame / (float)CD_FPS * 1000 /
(float)((float)1152 / (float)_mad_header.samplerate * 1000) *
(float)(frame_size + 0.5));