| Index: webrtc/modules/audio_processing/gain_control_impl.cc
|
| diff --git a/webrtc/modules/audio_processing/gain_control_impl.cc b/webrtc/modules/audio_processing/gain_control_impl.cc
|
| index 3b1537e796f26558b8814d3c2f28e0dc4112e51a..595596b5598260c04b891362a4849fcb93ddd705 100644
|
| --- a/webrtc/modules/audio_processing/gain_control_impl.cc
|
| +++ b/webrtc/modules/audio_processing/gain_control_impl.cc
|
| @@ -296,7 +296,9 @@ int GainControlImpl::Initialize() {
|
| return err;
|
| }
|
|
|
| - capture_levels_.assign(num_handles(), analog_capture_level_);
|
| + const int n = num_handles();
|
| + RTC_CHECK_GE(n, 0) << "Bad number of handles: " << n;
|
| + capture_levels_.assign(n, analog_capture_level_);
|
| return apm_->kNoError;
|
| }
|
|
|
|
|