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

Unified Diff: webrtc/common_audio/vad/vad.cc

Issue 1227203003: Update audio code to use size_t more correctly, webrtc/common_audio/ portion. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync 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 | « webrtc/common_audio/vad/include/webrtc_vad.h ('k') | webrtc/common_audio/vad/vad_core.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_audio/vad/vad.cc
diff --git a/webrtc/common_audio/vad/vad.cc b/webrtc/common_audio/vad/vad.cc
index fd09c3f7f9fbd5d72b93840097a9d2e11fd30cfa..764d024cbd36a0abd7bcc9a7cee6ca5ff61d6bae 100644
--- a/webrtc/common_audio/vad/vad.cc
+++ b/webrtc/common_audio/vad/vad.cc
@@ -28,8 +28,7 @@ Vad::~Vad() {
enum Vad::Activity Vad::VoiceActivity(const int16_t* audio,
size_t num_samples,
int sample_rate_hz) {
- int ret = WebRtcVad_Process(
- handle_, sample_rate_hz, audio, static_cast<int>(num_samples));
+ int ret = WebRtcVad_Process(handle_, sample_rate_hz, audio, num_samples);
switch (ret) {
case 0:
return kPassive;
« no previous file with comments | « webrtc/common_audio/vad/include/webrtc_vad.h ('k') | webrtc/common_audio/vad/vad_core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698