Change all system clock types to int64_t in bitrate_controller.
They are both compared to int64_t types inside the class, and is being called with int64_t types. Could possibly cause bugs. R=pbos@webrtc.org Review URL: https://webrtc-codereview.appspot.com/33529004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7832 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -27,7 +27,7 @@ class SendSideBandwidthEstimation {
|
||||
void CurrentEstimate(uint32_t* bitrate, uint8_t* loss, uint32_t* rtt) const;
|
||||
|
||||
// Call periodically to update estimate.
|
||||
void UpdateEstimate(uint32_t now_ms);
|
||||
void UpdateEstimate(int64_t now_ms);
|
||||
|
||||
// Call when we receive a RTCP message with TMMBR or REMB.
|
||||
void UpdateReceiverEstimate(uint32_t bandwidth);
|
||||
@ -36,7 +36,7 @@ class SendSideBandwidthEstimation {
|
||||
void UpdateReceiverBlock(uint8_t fraction_loss,
|
||||
uint32_t rtt,
|
||||
int number_of_packets,
|
||||
uint32_t now_ms);
|
||||
int64_t now_ms);
|
||||
|
||||
void SetSendBitrate(uint32_t bitrate);
|
||||
void SetMinMaxBitrate(uint32_t min_bitrate, uint32_t max_bitrate);
|
||||
@ -59,9 +59,9 @@ class SendSideBandwidthEstimation {
|
||||
// Updates history of min bitrates.
|
||||
// After this method returns min_bitrate_history_.front().second contains the
|
||||
// min bitrate used during last kBweIncreaseIntervalMs.
|
||||
void UpdateMinHistory(uint32_t now_ms);
|
||||
void UpdateMinHistory(int64_t now_ms);
|
||||
|
||||
std::deque<std::pair<uint32_t, uint32_t> > min_bitrate_history_;
|
||||
std::deque<std::pair<int64_t, uint32_t> > min_bitrate_history_;
|
||||
|
||||
// incoming filters
|
||||
int accumulate_lost_packets_Q8_;
|
||||
@ -71,12 +71,12 @@ class SendSideBandwidthEstimation {
|
||||
uint32_t min_bitrate_configured_;
|
||||
uint32_t max_bitrate_configured_;
|
||||
|
||||
uint32_t time_last_receiver_block_ms_;
|
||||
int64_t time_last_receiver_block_ms_;
|
||||
uint8_t last_fraction_loss_;
|
||||
uint16_t last_round_trip_time_ms_;
|
||||
|
||||
uint32_t bwe_incoming_;
|
||||
uint32_t time_last_decrease_ms_;
|
||||
int64_t time_last_decrease_ms_;
|
||||
int64_t first_report_time_ms_;
|
||||
int initially_lost_packets_;
|
||||
int bitrate_at_2_seconds_kbps_;
|
||||
|
||||
Reference in New Issue
Block a user