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

Unified Diff: webrtc/voice_engine/channel.cc

Issue 2582043002: Fixing init time error in smoothing filter. (Closed)
Patch Set: fixing Created 4 years 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/voice_engine/channel.cc
diff --git a/webrtc/voice_engine/channel.cc b/webrtc/voice_engine/channel.cc
index 100832de3adeb2dc986cd255dc271a109ea6bbb7..66d68301bae53468cf598314ac6f8b157f7ca725 100644
--- a/webrtc/voice_engine/channel.cc
+++ b/webrtc/voice_engine/channel.cc
@@ -925,9 +925,9 @@ Channel::Channel(int32_t channelId,
retransmission_rate_limiter_(new RateLimiter(Clock::GetRealTimeClock(),
kMaxRetransmissionWindowMs)),
decoder_factory_(config.acm_config.decoder_factory),
- // Bitrate smoother can be initialized with arbitrary time constant
- // (0 used here). The actual time constant will be set in SetBitRate.
- bitrate_smoother_(0, Clock::GetRealTimeClock()) {
+ // The initialization time for bitrate smoother follows a rough estimate
+ // of the probing interval of the bandwidth estimator.
+ bitrate_smoother_(500, Clock::GetRealTimeClock()) {
WEBRTC_TRACE(kTraceMemory, kTraceVoice, VoEId(_instanceId, _channelId),
"Channel::Channel() - ctor");
AudioCodingModule::Config acm_config(config.acm_config);

Powered by Google App Engine
This is Rietveld 408576698