aboutsummaryrefslogtreecommitdiff
path: root/video/bink_decoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'video/bink_decoder.cpp')
-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;