Fixed typo in encoder input saturation.

git-svn-id: http://voip.null.ro/svn/yate@5935 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2015-02-02 18:16:46 +00:00
parent 69bf1bf2f5
commit a97ca952c5
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ void AmrTrans::filterBias(short* buf, unsigned int len)
// substract the averaged bias and saturate
val -= m_bias / 16;
if (val > 32767)
val = 32676;
val = 32767;
else if (val < -32767)
val = -32767;
*buf++ = val;