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

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

Issue 2412883002: NetEq: Remove special case for Merge without Expand (Closed)
Patch Set: Created 4 years, 2 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/decision_logic_normal.cc
diff --git a/webrtc/modules/audio_coding/neteq/decision_logic_normal.cc b/webrtc/modules/audio_coding/neteq/decision_logic_normal.cc
index 37a75d7f5ad61714d9aa9c1a4708c7608f1cd983..ee11c466a8387825e72965488172d30f152eb3c2 100644
--- a/webrtc/modules/audio_coding/neteq/decision_logic_normal.cc
+++ b/webrtc/modules/audio_coding/neteq/decision_logic_normal.cc
@@ -207,12 +207,7 @@ Operations DecisionLogicNormal::FuturePacketAvailable(
}
}
// Do not merge unless we have done an expand before.
- // (Convert kAllowMergeWithoutExpand from ms to samples by multiplying with
- // fs_mult_ * 8 = fs / 1000.)
- if (prev_mode == kModeExpand ||
- (decoder_frame_length < output_size_samples_ &&
- cur_size_samples >
- static_cast<size_t>(kAllowMergeWithoutExpandMs * fs_mult_ * 8))) {
+ if (prev_mode == kModeExpand) {
return kMerge;
} else if (play_dtmf) {
// Play DTMF instead of expand.
« no previous file with comments | « webrtc/modules/audio_coding/neteq/decision_logic_normal.h ('k') | webrtc/modules/audio_coding/neteq/neteq_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698