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

Unified Diff: webrtc/common_audio/audio_converter_unittest.cc

Issue 1174813003: Prepare to convert various types to size_t. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Review comments + resync Created 5 years, 6 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 | « talk/app/webrtc/test/fakeaudiocapturemodule.h ('k') | webrtc/common_audio/real_fourier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_audio/audio_converter_unittest.cc
diff --git a/webrtc/common_audio/audio_converter_unittest.cc b/webrtc/common_audio/audio_converter_unittest.cc
index 6da339f08a09e4672a22515a386a28ca30c20216..590c8ceb56afeb2d3aa5227da98b7ebf4fb39d67 100644
--- a/webrtc/common_audio/audio_converter_unittest.cc
+++ b/webrtc/common_audio/audio_converter_unittest.cc
@@ -49,7 +49,7 @@ float ComputeSNR(const ChannelBuffer<float>& ref,
int best_delay = 0;
// Search within one sample of the expected delay.
- for (int delay = std::max(expected_delay - 1, 0);
+ for (int delay = std::max(expected_delay, 1) - 1;
delay <= std::min(expected_delay + 1, ref.num_frames());
++delay) {
float mse = 0;
« no previous file with comments | « talk/app/webrtc/test/fakeaudiocapturemodule.h ('k') | webrtc/common_audio/real_fourier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698