Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1254)

Unified Diff: modules/audio_processing/intelligibility/intelligibility_enhancer.cc

Issue 1250663007: Allow webrtc compilation with stlport (Closed) Base URL: https://chromium.googlesource.com/external/webrtc/trunk/webrtc.git@master
Patch Set: Fix only .data() Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/audio_processing/intelligibility/intelligibility_enhancer.cc
diff --git a/modules/audio_processing/intelligibility/intelligibility_enhancer.cc b/modules/audio_processing/intelligibility/intelligibility_enhancer.cc
index 1e766875caedc519004077e4a2ebfc1f993c9262..e4a8139c4c5d7fcd6c6415c948f6d7f15cbb5c28 100644
--- a/modules/audio_processing/intelligibility/intelligibility_enhancer.cc
+++ b/modules/audio_processing/intelligibility/intelligibility_enhancer.cc
@@ -390,8 +390,9 @@ void IntelligibilityEnhancer::SolveForGainsGivenLambda(float lambda,
}
void IntelligibilityEnhancer::FilterVariance(const float* var, float* result) {
+ DCHECK_GT(freqs_, 0);
for (int i = 0; i < bank_size_; ++i) {
- result[i] = DotProduct(filter_bank_[i].data(), var, freqs_);
+ result[i] = DotProduct(&filter_bank_[i][0], var, freqs_);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698