Changeset 1872 for pjproject/trunk


Ignore:
Timestamp:
Mar 17, 2008 3:58:32 PM (17 years ago)
Author:
bennylp
Message:

More ticket #507: fixed the bug introduced in r1871 about operator precedence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/g722/g722_enc.c

    r1871 r1872  
    7777    sil = el >> 15 ; 
    7878    if (sil == 0 )  wd = el ; 
    79     else wd = 32767 - (el & 32767) ; 
     79    else wd = (32767 - el) & 32767 ; 
    8080 
    8181    mil = 1 ; 
     
    305305    sih = eh >> 15 ; 
    306306    if (sih == 0 )  wd = eh ; 
    307     else wd = 32767 - (eh & 32767) ; 
     307    else wd = (32767 - eh) & 32767 ; 
    308308 
    309309    hdu = (564 << 3) * deth; 
Note: See TracChangeset for help on using the changeset viewer.