summaryrefslogtreecommitdiffstats
path: root/apps/codecs/wav_enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/wav_enc.c')
-rw-r--r--apps/codecs/wav_enc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/wav_enc.c b/apps/codecs/wav_enc.c
index 083465ab54..4b7b0083c8 100644
--- a/apps/codecs/wav_enc.c
+++ b/apps/codecs/wav_enc.c
@@ -229,10 +229,10 @@ static void chunk_to_wav_format(uint32_t *src, uint32_t *dst)
int32_t lr1, lr2;
lr1 = *(*src)++;
- lr1 = ((int16_t)lr1 + (lr1 >> 16)) >> 1;
+ lr1 = ((int16_t)lr1 + (lr1 >> 16)) / 2;
lr2 = *(*src)++;
- lr2 = ((int16_t)lr2 + (lr2 >> 16)) >> 1;
+ lr2 = ((int16_t)lr2 + (lr2 >> 16)) / 2;
*(*dst)++ = swap_odd_even_be32((lr1 << 16) | (uint16_t)lr2);
} /* to_mono */