From e8a3d984f5570ec6fe70820c1e3e4cd3593b044a Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 26 Mar 2015 14:57:24 +0100 Subject: [PATCH] Another small (audio) fix --- src/audio/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/utils.cpp b/src/audio/utils.cpp index 933c5659e..50ea4c9bb 100644 --- a/src/audio/utils.cpp +++ b/src/audio/utils.cpp @@ -249,7 +249,7 @@ static double get_normalized(const char *in, int bps) { bool negative = false; for (int j = 0; j < bps; ++j) { - sample = (sample | (((uint8_t)in[j]) << (8ull * j))); + sample = (sample | ((((uint8_t *)in)[j]) << (8ull * j))); } if ((int8_t)(in[bps - 1] < 0)) negative = true;