aboutsummaryrefslogtreecommitdiffstats
path: root/codecs/g722/g722_decode.c
diff options
context:
space:
mode:
Diffstat (limited to 'codecs/g722/g722_decode.c')
-rw-r--r--codecs/g722/g722_decode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/codecs/g722/g722_decode.c b/codecs/g722/g722_decode.c
index 1625acc86..3e8f7d0c6 100644
--- a/codecs/g722/g722_decode.c
+++ b/codecs/g722/g722_decode.c
@@ -370,7 +370,7 @@ int g722_decode(g722_decode_state_t *s, int16_t amp[], const uint8_t g722_data[]
{
if (s->eight_k)
{
- amp[outlen++] = (int16_t) rlow;
+ amp[outlen++] = (int16_t) (rlow << 1);
}
else
{
@@ -387,8 +387,8 @@ int g722_decode(g722_decode_state_t *s, int16_t amp[], const uint8_t g722_data[]
xout2 += s->x[2*i]*qmf_coeffs[i];
xout1 += s->x[2*i + 1]*qmf_coeffs[11 - i];
}
- amp[outlen++] = (int16_t) (xout1 >> 12);
- amp[outlen++] = (int16_t) (xout2 >> 12);
+ amp[outlen++] = (int16_t) (xout1 >> 11);
+ amp[outlen++] = (int16_t) (xout2 >> 11);
}
}
}