commit | cd19faffa8dff5398650d984ad43bff54a290a5a | [log] [tgz] |
---|---|---|
author | kwiberg <kwiberg@webrtc.org> | Thu Nov 05 05:11:19 2015 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Thu Nov 05 13:11:26 2015 +0000 |
tree | 503a8eefbd16760b4eb6847de916fc78822ff5a2 | |
parent | 2f48d9412440942133c637d1e47264d5179b9b51 [diff] |
Attempt to isolate a bug by adding a new CHECK Review URL: https://codereview.webrtc.org/1426953005 Cr-Commit-Position: refs/heads/master@{#10520}
diff --git a/webrtc/modules/audio_processing/gain_control_impl.cc b/webrtc/modules/audio_processing/gain_control_impl.cc index 3b1537e..595596b 100644 --- a/webrtc/modules/audio_processing/gain_control_impl.cc +++ b/webrtc/modules/audio_processing/gain_control_impl.cc
@@ -296,7 +296,9 @@ 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; }