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

Unified Diff: webrtc/modules/audio_coding/neteq/merge.cc

Issue 2859483005: NetEq: Fix a bug in expand_rate and speech_expand_rate calculation (Closed)
Patch Set: Fix android checksum Created 3 years, 7 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
Index: webrtc/modules/audio_coding/neteq/merge.cc
diff --git a/webrtc/modules/audio_coding/neteq/merge.cc b/webrtc/modules/audio_coding/neteq/merge.cc
index d50b66588a8d2e146905ea47a83a55bb4a2ada31..8662569cfe713f1b9fa2f9184ec8681c5ff0fe05 100644
--- a/webrtc/modules/audio_coding/neteq/merge.cc
+++ b/webrtc/modules/audio_coding/neteq/merge.cc
@@ -154,7 +154,10 @@ size_t Merge::Process(int16_t* input, size_t input_length,
// Copy back the first part of the data to |sync_buffer_| and remove it from
// |output|.
sync_buffer_->ReplaceAtIndex(*output, old_length, sync_buffer_->next_index());
+ RTC_DCHECK_EQ(output_length, output->Size());
minyue-webrtc 2017/05/05 07:14:00 I don't quite see how this relates to the changes
hlundin-webrtc 2017/05/05 07:42:14 I basically just wanted to make sure that the retu
minyue-webrtc 2017/05/05 07:50:39 Acknowledged.
+ RTC_DCHECK_GE(output_length, old_length);
output->PopFront(old_length);
+ RTC_DCHECK_EQ(output_length - old_length, output->Size());
// Return new added length. |old_length| samples were borrowed from
// |sync_buffer_|.
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/neteq/neteq_impl.cc » ('j') | webrtc/modules/audio_coding/neteq/neteq_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698