diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-02-08 18:01:53 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-02-08 18:01:53 +0000 |
commit | 1c09cc1ebe804e6c35f6767f044f858941f2ad24 (patch) | |
tree | ccff311358452bc9751ca67a76a7dc0f82b54f33 /pjmedia | |
parent | 24c80b6eb9732bc4e96a264dfe9b1dacd19f2983 (diff) |
Fixed bug #94: wrong level adjustment calculation in conference bridge
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@937 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia')
-rw-r--r-- | pjmedia/src/pjmedia/conference.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pjmedia/src/pjmedia/conference.c b/pjmedia/src/pjmedia/conference.c index 317c355a..b5ef7ec8 100644 --- a/pjmedia/src/pjmedia/conference.c +++ b/pjmedia/src/pjmedia/conference.c @@ -1728,7 +1728,9 @@ static pj_status_t get_frame(pjmedia_port *this_port, else if (itemp < -32768) itemp = -32768; input[j] = (pj_int16_t) itemp; - level += itemp; + + if (itemp >=0 ) level += itemp; + else level -= itemp; } level /= conf->samples_per_frame; |