Fixed typo in encoder input saturation.

git-svn-id: http://yate.null.ro/svn/yate/trunk@5935 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2015-02-02 18:16:46 +00:00
parent 7e7477a2e6
commit 583e9bc73e
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;