Fix a bug/typo in WebRtcSpl_FilterAR which updates the wrong state vector

Bug: webrtc:10877
Change-Id: I089ac68d71a31914ddb020cb78a44295230cb44b
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/149028
Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org>
Commit-Queue: Henrik Lundin <henrik.lundin@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#28868}
This commit is contained in:
Jiawei Ou 2019-08-13 16:22:32 -07:00 committed by Commit Bot
parent 67e43c8b95
commit ffc525bb96

View file

@ -87,7 +87,7 @@ size_t WebRtcSpl_FilterAR(const int16_t* a,
for (i = 0; i < x_length; i++)
{
state[state_length - x_length + i] = filtered[i];
state[state_length - x_length + i] = filtered_low[i];
state_low[state_length - x_length + i] = filtered_low[i];
}
}