[asterisk-commits] murf: trunk r80241 - in /trunk: ./ main/alaw.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Aug 22 09:12:25 CDT 2007
Author: murf
Date: Wed Aug 22 09:12:24 2007
New Revision: 80241
URL: http://svn.digium.com/view/asterisk?view=rev&rev=80241
Log:
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.
........
Modified:
trunk/ (props changed)
trunk/main/alaw.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/main/alaw.c
URL: http://svn.digium.com/view/asterisk/trunk/main/alaw.c?view=diff&rev=80241&r1=80240&r2=80241
==============================================================================
--- trunk/main/alaw.c (original)
+++ trunk/main/alaw.c Wed Aug 22 09:12:24 2007
@@ -112,7 +112,7 @@
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);
More information about the asterisk-commits
mailing list