Corrected the counter for the filter constraint when the filter size changes
Bug: chromium:834875 Change-Id: I036fe34eef894a8911a4d561fe5b671a8f98b718 Reviewed-on: https://webrtc-review.googlesource.com/71820 Reviewed-by: Alex Loiko <aleloi@webrtc.org> Commit-Queue: Per Åhgren <peah@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22992}
This commit is contained in:
parent
89a877445b
commit
882477f19d
@ -504,6 +504,9 @@ void AdaptiveFirFilter::ResetFilterBuffersToCurrentSize() {
|
||||
H_.resize(current_size_partitions_);
|
||||
H2_.resize(current_size_partitions_);
|
||||
h_.resize(GetTimeDomainLength(current_size_partitions_));
|
||||
RTC_DCHECK_LT(0, current_size_partitions_);
|
||||
partition_to_constrain_ =
|
||||
std::min(partition_to_constrain_, current_size_partitions_ - 1);
|
||||
}
|
||||
|
||||
void AdaptiveFirFilter::UpdateSize() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user