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

Unified Diff: webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_single_stream.cc

Issue 2126793002: Reset InterArrival if arrival time clock makes a jump. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix a few test issues. Created 4 years, 5 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/remote_bitrate_estimator/remote_bitrate_estimator_single_stream.cc
diff --git a/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_single_stream.cc b/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_single_stream.cc
index 182cbf9b1ed86c284dce9e78d3da69855cfdffc2..d97bb4178423b6b8ed8b54dfae8cc337fb2ee0d9 100644
--- a/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_single_stream.cc
+++ b/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_single_stream.cc
@@ -109,9 +109,9 @@ void RemoteBitrateEstimatorSingleStream::IncomingPacket(
uint32_t timestamp_delta = 0;
int64_t time_delta = 0;
int size_delta = 0;
- if (estimator->inter_arrival.ComputeDeltas(rtp_timestamp, arrival_time_ms,
- payload_size, &timestamp_delta,
- &time_delta, &size_delta)) {
+ if (estimator->inter_arrival.ComputeDeltas(
+ rtp_timestamp, arrival_time_ms, now_ms, payload_size,
+ &timestamp_delta, &time_delta, &size_delta)) {
double timestamp_delta_ms = timestamp_delta * kTimestampToMs;
estimator->estimator.Update(time_delta, timestamp_delta_ms, size_delta,
estimator->detector.State());

Powered by Google App Engine
This is Rietveld 408576698