NetEq: Fix a negative shift value

In some rare occations (very low energy signal), a shift value happened
to be negative. This is now fixed by using the WEBRTC_SPL_SHIFT_W32,
which in essence checks the sign of the number of shifts and performs a
right or left shift accordingly.

The fix reverts to how the code was written in old NetEq; see
4d363ae305/webrtc/modules/audio_coding/neteq/normal.c (165).

BUG=webrtc:5490

Review URL: https://codereview.webrtc.org/1675293002

Cr-Commit-Position: refs/heads/master@{#11546}
This commit is contained in:
henrik.lundin
2016-02-10 02:47:52 -08:00
committed by Commit bot
parent 15583c19d7
commit 6608d9a1aa
3 changed files with 23 additions and 22 deletions

View File

@ -1 +1 @@
133f5c18838c1d5c3cc61744e1e5f4d144518239
a349bd71dba548029b05d1d2a6dc7caafab9a856