aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2011-07-19 10:50:48 +0300
committerFilippos Karapetis2011-07-19 10:50:48 +0300
commite1ca235c4457e7f5f35dea688396845146fbf04a (patch)
treef76834d51c2d1b5e17518f89011b1d672f7893b5
parent2cdd83141ab2cf364de62973de4c014944836f73 (diff)
downloadscummvm-rg350-e1ca235c4457e7f5f35dea688396845146fbf04a.tar.gz
scummvm-rg350-e1ca235c4457e7f5f35dea688396845146fbf04a.tar.bz2
scummvm-rg350-e1ca235c4457e7f5f35dea688396845146fbf04a.zip
BINK decoder: Fixed compilation with MSVC
-rw-r--r--video/bink_decoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/bink_decoder.cpp b/video/bink_decoder.cpp
index 1f3190dff1..cebda72a76 100644
--- a/video/bink_decoder.cpp
+++ b/video/bink_decoder.cpp
@@ -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;