Skip to content
Snippets Groups Projects
Commit 6f9f77e0 authored by Steve Murphy's avatar Steve Murphy
Browse files

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: https://origsvn.digium.com/svn/asterisk/trunk@80241 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 5eb7cbef
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment