Index: webrtc/modules/remote_bitrate_estimator/test/packet_sender.cc |
diff --git a/webrtc/modules/remote_bitrate_estimator/test/packet_sender.cc b/webrtc/modules/remote_bitrate_estimator/test/packet_sender.cc |
index 3bcbc0a071bf8ef7e587f2f80a91ed11b62512d1..00e7a8b157f7ed69970346fb1e02f753fe272e6f 100644 |
--- a/webrtc/modules/remote_bitrate_estimator/test/packet_sender.cc |
+++ b/webrtc/modules/remote_bitrate_estimator/test/packet_sender.cc |
@@ -157,12 +157,7 @@ PacedVideoSender::PacedVideoSender(PacketProcessorListener* listener, |
VideoSource* source, |
BandwidthEstimatorType estimator) |
: VideoSender(listener, source, estimator), |
- pacer_(&clock_, |
- this, |
- source->bits_per_second() / 1000, |
- PacedSender::kDefaultPaceMultiplier * source->bits_per_second() / |
- 1000, |
- 0) { |
+ pacer_(&clock_, this, source->bits_per_second()) { |
modules_.push_back(&pacer_); |
} |
@@ -310,9 +305,7 @@ void PacedVideoSender::OnNetworkChanged(uint32_t target_bitrate_bps, |
uint8_t fraction_lost, |
int64_t rtt) { |
VideoSender::OnNetworkChanged(target_bitrate_bps, fraction_lost, rtt); |
- pacer_.UpdateBitrate( |
- target_bitrate_bps / 1000, |
- PacedSender::kDefaultPaceMultiplier * target_bitrate_bps / 1000, 0); |
+ pacer_.SetEstimatedBitrate(target_bitrate_bps); |
} |
const int kNoLimit = std::numeric_limits<int>::max(); |