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

Unified Diff: webrtc/system_wrappers/include/rtp_to_ntp_estimator.h

Issue 2963133003: More gracefully handle rtp timestamp jumps in the rtp to ntp estimator. (Closed)
Patch Set: . Created 3 years, 6 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 | « no previous file | webrtc/system_wrappers/source/rtp_to_ntp_estimator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/system_wrappers/include/rtp_to_ntp_estimator.h
diff --git a/webrtc/system_wrappers/include/rtp_to_ntp_estimator.h b/webrtc/system_wrappers/include/rtp_to_ntp_estimator.h
index a17428bf2730c4a0a68d06aaf1d69c418cc8dfd8..9d6da051d5027bd8f3a8a0d2a71818d0ac226547 100644
--- a/webrtc/system_wrappers/include/rtp_to_ntp_estimator.h
+++ b/webrtc/system_wrappers/include/rtp_to_ntp_estimator.h
@@ -54,9 +54,12 @@ class RtpToNtpEstimator {
const Parameters& params() const { return params_; }
+ static const int kMaxInvalidSamples = 3;
+
private:
void UpdateParameters();
+ int consecutive_invalid_samples_;
std::list<RtcpMeasurement> measurements_;
Parameters params_;
};
« no previous file with comments | « no previous file | webrtc/system_wrappers/source/rtp_to_ntp_estimator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698