summaryrefslogtreecommitdiff
path: root/codecs/g722/g722_decode.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2009-05-15 17:59:08 +0000
committerRussell Bryant <russell@russellbryant.com>2009-05-15 17:59:08 +0000
commit19853c437ee949f136d377b2f8a016db9bba18ae (patch)
tree6da771a7e39b4688b78fc345f44afa399064fd80 /codecs/g722/g722_decode.c
parent66c76daba1e3ff607d11e783a48c1b20ec2e8d7a (diff)
Shuttle some bits around to address some gain issues with G.722.
(closes AST-209) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@194722 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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);
}
}
}