Another small (audio) fix

This commit is contained in:
Martin Pulec
2015-03-26 14:57:24 +01:00
parent 5515315230
commit e8a3d984f5

View File

@@ -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;