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

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: Changing to Minyue's suggestion 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..9efbe4fb9c613ae2c0b92e300a4a1e9012ed4053 100644
--- a/webrtc/modules/audio_coding/neteq/merge.cc
+++ b/webrtc/modules/audio_coding/neteq/merge.cc
@@ -158,6 +158,7 @@ size_t Merge::Process(int16_t* input, size_t input_length,
// Return new added length. |old_length| samples were borrowed from
// |sync_buffer_|.
+ RTC_DCHECK_GE(output_length, old_length);
return output_length - old_length;
}

Powered by Google App Engine
This is Rietveld 408576698