Fix compiler warnings due to type mismatch.
BUG=webrtc:8169 Change-Id: Ie98dcaa09e1e5b7c9f48410cd3049740ccac67b9 Reviewed-on: https://chromium-review.googlesource.com/639314 Reviewed-by: Niklas Enbom <niklas.enbom@webrtc.org> Commit-Queue: Lu Liu <lliuu@webrtc.org> Cr-Commit-Position: refs/heads/master@{#19567}
This commit is contained in:
@ -55,7 +55,8 @@ void BitrateController::MakeDecision(AudioEncoderRuntimeConfig* config) {
|
||||
if (config->frame_length_ms)
|
||||
frame_length_ms_ = *config->frame_length_ms;
|
||||
int overhead_rate_bps =
|
||||
*overhead_bytes_per_packet_ * 8 * 1000 / frame_length_ms_;
|
||||
static_cast<int>(*overhead_bytes_per_packet_ * 8 * 1000 /
|
||||
frame_length_ms_);
|
||||
bitrate_bps_ = std::max(0, *target_audio_bitrate_bps_ - overhead_rate_bps);
|
||||
}
|
||||
config->bitrate_bps = rtc::Optional<int>(bitrate_bps_);
|
||||
|
||||
@ -282,7 +282,8 @@ void StatisticsCalculator::GetNetworkStatistics(
|
||||
discarded_secondary_packets_ * samples_per_packet;
|
||||
stats->secondary_discarded_rate = CalculateQ14Ratio(
|
||||
discarded_secondary_samples,
|
||||
discarded_secondary_samples + secondary_decoded_samples_);
|
||||
static_cast<uint32_t>(discarded_secondary_samples +
|
||||
secondary_decoded_samples_));
|
||||
|
||||
if (waiting_times_.size() == 0) {
|
||||
stats->mean_waiting_time_ms = -1;
|
||||
|
||||
Reference in New Issue
Block a user