diff options
-rw-r--r-- | libavcodec/g723_1.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/g723_1.c b/libavcodec/g723_1.c index bf753ab182..c337deb881 100644 --- a/libavcodec/g723_1.c +++ b/libavcodec/g723_1.c @@ -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 */ |