From e1ca235c4457e7f5f35dea688396845146fbf04a Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 19 Jul 2011 10:50:48 +0300 Subject: BINK decoder: Fixed compilation with MSVC --- video/bink_decoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3