summaryrefslogtreecommitdiff
path: root/apps/codecs/wavpack_enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/wavpack_enc.c')
-rw-r--r--apps/codecs/wavpack_enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/wavpack_enc.c b/apps/codecs/wavpack_enc.c
index c602ca4f55..208cd3bc68 100644
--- a/apps/codecs/wavpack_enc.c
+++ b/apps/codecs/wavpack_enc.c
@@ -126,7 +126,7 @@ static void chunk_to_int32(int32_t *src)
126 { 126 {
127 int32_t t = *(*src)++; 127 int32_t t = *(*src)++;
128 /* endianness irrelevant */ 128 /* endianness irrelevant */
129 *(*dst)++ = ((int16_t)t + (t >> 16)) >> 1; 129 *(*dst)++ = ((int16_t)t + (t >> 16)) / 2;
130 } /* to_int32 */ 130 } /* to_int32 */
131 131
132 do 132 do