From df316c166181fd58ebc4efad3d4a2f5bfdf86e9e Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Mon, 17 Mar 2008 15:58:32 +0000 Subject: More ticket #507: fixed the bug introduced in r1871 about operator precedence git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1872 74dad513-b988-da41-8d7b-12977e46ad98 --- pjmedia/src/pjmedia-codec/g722/g722_enc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pjmedia/src/pjmedia-codec') diff --git a/pjmedia/src/pjmedia-codec/g722/g722_enc.c b/pjmedia/src/pjmedia-codec/g722/g722_enc.c index 30453eb9..8f6ee5a5 100644 --- a/pjmedia/src/pjmedia-codec/g722/g722_enc.c +++ b/pjmedia/src/pjmedia-codec/g722/g722_enc.c @@ -76,7 +76,7 @@ static int block1l (int xl, int sl, int detl) sil = el >> 15 ; if (sil == 0 ) wd = el ; - else wd = 32767 - (el & 32767) ; + else wd = (32767 - el) & 32767 ; mil = 1 ; @@ -304,7 +304,7 @@ static int block1h (int xh, int sh, int deth) sih = eh >> 15 ; if (sih == 0 ) wd = eh ; - else wd = 32767 - (eh & 32767) ; + else wd = (32767 - eh) & 32767 ; hdu = (564 << 3) * deth; wd1 = (hdu >> 15) ; -- cgit v1.2.3