BINK decoder: Fixed compilation with MSVC

This commit is contained in:
Filippos Karapetis 2011-07-19 10:50:48 +03:00
parent 2cdd83141a
commit e1ca235c44

View File

@ -654,7 +654,7 @@ void BinkDecoder::initAudioTrack(AudioTrack &audio) {
audio.overlapLen = audio.frameLen / 16;
audio.blockSize = (audio.frameLen - audio.overlapLen) * audio.channels;
audio.root = 2.0 / sqrt(audio.frameLen);
audio.root = 2.0 / sqrt((double)audio.frameLen);
uint32 sampleRateHalf = (audio.sampleRate + 1) / 2;