diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-05-15 17:59:08 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-05-15 17:59:08 +0000 |
commit | de17fec21aeb684dd3a68ae9840b6e356998fd93 (patch) | |
tree | 6da771a7e39b4688b78fc345f44afa399064fd80 /codecs/g722/g722_encode.c | |
parent | f445764a454e60d6f8ae7ea87ce7b2009bddc62e (diff) |
Shuttle some bits around to address some gain issues with G.722.
(closes AST-209)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@194722 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs/g722/g722_encode.c')
-rw-r--r-- | codecs/g722/g722_encode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/codecs/g722/g722_encode.c b/codecs/g722/g722_encode.c index ad7e6b522..5890fbf24 100644 --- a/codecs/g722/g722_encode.c +++ b/codecs/g722/g722_encode.c @@ -279,7 +279,7 @@ int g722_encode(g722_encode_state_t *s, uint8_t g722_data[], const int16_t amp[] { if (s->eight_k) { - xlow = amp[j++]; + xlow = amp[j++] >> 1; } else { @@ -298,8 +298,8 @@ int g722_encode(g722_encode_state_t *s, uint8_t g722_data[], const int16_t amp[] sumodd += s->x[2*i]*qmf_coeffs[i]; sumeven += s->x[2*i + 1]*qmf_coeffs[11 - i]; } - xlow = (sumeven + sumodd) >> 13; - xhigh = (sumeven - sumodd) >> 13; + xlow = (sumeven + sumodd) >> 14; + xhigh = (sumeven - sumodd) >> 14; } } /* Block 1L, SUBTRA */ |