commit | 928b34e89561e8d752027693ef9b26882f607523 | [log] [tgz] |
---|---|---|
author | Adrian Grange <agrange@google.com> | Mon May 05 09:39:24 2014 -0700 |
committer | Adrian Grange <agrange@google.com> | Mon May 05 11:00:43 2014 -0700 |
tree | a8f05a78055fbb6fa78ad2ac3b2cacaa5f467e0b | |
parent | 1b7291d52c8f8c5b8dca0faef6c61c5e0c84bec7 [diff] |
Fix rounding in ARNR calculation The rounding of the ARNR filter output prior to normalization by the filter strength was incorrect when strength = 0. In this case 1 << (strength - 1) would not create the required rounding of 0, rather it would outrange. This patch fixes this issue. Change-Id: I771809ba34d6052b17d34c870ea11ff67b418dab