summaryrefslogtreecommitdiffstats
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)
{
int32_t t = *(*src)++;
/* endianness irrelevant */
- *(*dst)++ = ((int16_t)t + (t >> 16)) >> 1;
+ *(*dst)++ = ((int16_t)t + (t >> 16)) / 2;
} /* to_int32 */
do