Commit e141cf2c authored by Mans Rullgard's avatar Mans Rullgard
Browse files

g723.1: deobfuscate an expression



(x << 2) - x is just an optimisation of 3 * x the compiler is
perfectly capable of doing on its own.
Signed-off-by: default avatarMans Rullgard <mans@mansr.com>
parent e2b7c578
......@@ -974,8 +974,7 @@ static void formant_postfilter(G723_1_Context *p, int16_t *lpc, int16_t *buf)
if (temp) {
temp = (auto_corr[0] >> 2) / temp;
}
p->reflection_coef = ((p->reflection_coef << 2) - p->reflection_coef +
temp + 2) >> 2;
p->reflection_coef = (3 * p->reflection_coef + temp + 2) >> 2;
temp = (p->reflection_coef * 0xffffc >> 3) & 0xfffc;
/* Compensation filter */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment