diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-22 14:12:24 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-22 14:12:24 +0000 |
commit | 1aec1f832d2c31a9ed3c3923e4ca7019085cbc96 (patch) | |
tree | 610c805d63517acfd0dca26612234682d1afde0f /main/alaw.c | |
parent | 3d3dbe7e24a0ef1b3ca69c8b5f711c92bbb13981 (diff) |
Merged revisions 80166 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r80166 | murf | 2007-08-21 10:36:34 -0600 (Tue, 21 Aug 2007) | 1 line
This patch solves problem 1 in 8126; it should not slow down the alaw codec, but should prevent signal degradation via multiple trips thru the codec. Fossil estimates the twice thru this codec will prevent fax from working. 4-6 times thru would result hearable, noticeable, voice degradation.
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80241 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/alaw.c')
-rw-r--r-- | main/alaw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/alaw.c b/main/alaw.c index fbc99b0fe..8baa6a7a3 100644 --- a/main/alaw.c +++ b/main/alaw.c @@ -112,7 +112,7 @@ static inline short int alaw2linear (unsigned char alaw) int seg; alaw ^= AMI_MASK; - i = ((alaw & 0x0F) << 4); + i = ((alaw & 0x0F) << 4) + 8 /* rounding error */; seg = (((int) alaw & 0x70) >> 4); if (seg) i = (i + 0x100) << (seg - 1); |