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

Unified Diff: webrtc/modules/congestion_controller/probe_bitrate_estimator.cc

Issue 2945833002: Remove redundant std::min from ProbeBitrateEstimator. (Closed)
Patch Set: Fix 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/congestion_controller/probe_bitrate_estimator.cc
diff --git a/webrtc/modules/congestion_controller/probe_bitrate_estimator.cc b/webrtc/modules/congestion_controller/probe_bitrate_estimator.cc
index a3b0b8830b3a3311864b7f97122a6dea13ea3965..722b01811462074de888e255032ce94c823404b4 100644
--- a/webrtc/modules/congestion_controller/probe_bitrate_estimator.cc
+++ b/webrtc/modules/congestion_controller/probe_bitrate_estimator.cc
@@ -139,7 +139,7 @@ int ProbeBitrateEstimator::HandleProbeAndEstimateBitrate(
float res = std::min(send_bps, receive_bps);
if (event_log_)
event_log_->LogProbeResultSuccess(cluster_id, res);
- estimated_bitrate_bps_ = rtc::Optional<int>(std::min(send_bps, res));
+ estimated_bitrate_bps_ = rtc::Optional<int>(res);
return *estimated_bitrate_bps_;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698