From 06446d36f50d2cca3a0c4861db0d050f25e36708 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Thu, 16 Aug 2018 17:28:24 +0100 Subject: VIDEO: More fixes when building with Theora and Tremor --- video/theora_decoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video') diff --git a/video/theora_decoder.cpp b/video/theora_decoder.cpp index f00bd485f9..1fef6d5be8 100644 --- a/video/theora_decoder.cpp +++ b/video/theora_decoder.cpp @@ -386,7 +386,7 @@ bool TheoraDecoder::VorbisAudioTrack::decodeSamples() { for (i = 0; i < ret && i < maxsamples; i++) { for (int j = 0; j < channels; j++) { #ifdef USE_TREMOR - int val = CLIP(pcm[j][i] >> 9, -32768, 32767); + int val = CLIP((int)pcm[j][i] >> 9, -32768, 32767); #else int val = CLIP((int)rint(pcm[j][i] * 32767.f), -32768, 32767); #endif -- cgit v1.2.3