From ffc525bb96729d1815917c2e1a0ce33854b29ac2 Mon Sep 17 00:00:00 2001 From: Jiawei Ou Date: Tue, 13 Aug 2019 16:22:32 -0700 Subject: [PATCH] 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 Commit-Queue: Henrik Lundin Cr-Commit-Position: refs/heads/master@{#28868} --- common_audio/signal_processing/filter_ar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common_audio/signal_processing/filter_ar.c b/common_audio/signal_processing/filter_ar.c index 2471cd1117..b1f666d723 100644 --- a/common_audio/signal_processing/filter_ar.c +++ b/common_audio/signal_processing/filter_ar.c @@ -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]; } }