Replace left shift with equivalent multiplication.
Issue was found by the NetEq fuzzer. TBR=kwiberg@webrtc.org Bug: chromium:779380 Change-Id: Ib6a3db78fadc3c7ae11478ca4f695c6d19a2db19 Reviewed-on: https://webrtc-review.googlesource.com/20869 Reviewed-by: Alex Loiko <aleloi@webrtc.org> Commit-Queue: Alex Loiko <aleloi@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20586}
This commit is contained in:
parent
1c9faeef5f
commit
aeb5d88dee
@ -91,7 +91,7 @@ static void AllPassFilter(const int16_t* data_in, size_t data_length,
|
||||
size_t i;
|
||||
int16_t tmp16 = 0;
|
||||
int32_t tmp32 = 0;
|
||||
int32_t state32 = ((int32_t) (*filter_state) << 16); // Q15
|
||||
int32_t state32 = ((int32_t) (*filter_state) * (1 << 16)); // Q15
|
||||
|
||||
for (i = 0; i < data_length; i++) {
|
||||
tmp32 = state32 + filter_coefficient * *data_in;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user