From fc0fd399736d3c7ffdf388314383f2adcf421e02 Mon Sep 17 00:00:00 2001 From: Brian West Date: Tue, 7 Mar 2006 05:44:38 +0000 Subject: [PATCH] small fix git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@776 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/codec/g726/src/g72x.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libs/codec/g726/src/g72x.c b/libs/codec/g726/src/g72x.c index 2e1c98b1dc..e13b872b30 100644 --- a/libs/codec/g726/src/g72x.c +++ b/libs/codec/g726/src/g72x.c @@ -383,12 +383,13 @@ update( /* UPA1 */ /* update predictor pole a[0] */ state_ptr->a[0] -= state_ptr->a[0] >> 8; - if (dqsez != 0) - if (pks1 == 0) + if (dqsez != 0) { + if (pks1 == 0) { state_ptr->a[0] += 192; - else + } else { state_ptr->a[0] -= 192; - + } + } /* LIMD */ a1ul = 15360 - a2p; if (state_ptr->a[0] < -a1ul)