mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 05:38:14 +00:00
fix cast bug.
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@556 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
160bde1d75
commit
d280a46797
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ static float gain_float(ms_word16_t val){
|
|||
}
|
||||
|
||||
static ms_word16_t gain_int16(float val){
|
||||
ms_word16_t ret=(val*GAIN_ZERODB);
|
||||
ms_word32_t ret=(val*GAIN_ZERODB);
|
||||
if (ret>=32767) ret=32767;
|
||||
return (ms_word16_t)ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue