[Scummvm-cvs-logs] scummvm master -> c39245b771e89b1a0ac5b391afca099b1a463f2b
fuzzie
fuzzie at fuzzie.org
Sat Aug 6 10:46:57 CEST 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
c39245b771 VIDEO: Remove incorrect TO_LE_16 calls from Bink audio code.
Commit: c39245b771e89b1a0ac5b391afca099b1a463f2b
https://github.com/scummvm/scummvm/commit/c39245b771e89b1a0ac5b391afca099b1a463f2b
Author: Alyssa Milburn (fuzzie at fuzzie.org)
Date: 2011-08-06T01:44:16-07:00
Commit Message:
VIDEO: Remove incorrect TO_LE_16 calls from Bink audio code.
Changed paths:
video/bink_decoder.cpp
diff --git a/video/bink_decoder.cpp b/video/bink_decoder.cpp
index c60dbc2..c02042f9 100644
--- a/video/bink_decoder.cpp
+++ b/video/bink_decoder.cpp
@@ -1538,13 +1538,13 @@ static inline int floatToInt16One(float src) {
void BinkDecoder::floatToInt16Interleave(int16 *dst, const float **src, uint32 length, uint8 channels) {
if (channels == 2) {
for (uint32 i = 0; i < length; i++) {
- dst[2 * i ] = TO_LE_16(floatToInt16One(src[0][i]));
- dst[2 * i + 1] = TO_LE_16(floatToInt16One(src[1][i]));
+ dst[2 * i ] = floatToInt16One(src[0][i]);
+ dst[2 * i + 1] = floatToInt16One(src[1][i]);
}
} else {
for(uint8 c = 0; c < channels; c++)
for(uint32 i = 0, j = c; i < length; i++, j += channels)
- dst[j] = TO_LE_16(floatToInt16One(src[c][i]));
+ dst[j] = floatToInt16One(src[c][i]);
}
}
More information about the Scummvm-git-logs
mailing list