From 1ddc7634fdbaebe2124c0afac398b4d0dd5a569a Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Thu, 14 Mar 2019 11:57:14 +0100 Subject: [PATCH] Qualify cmath functions. Bug: None Change-Id: Id561750eb6c2e26588e505beb3800e97075adb87 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/127782 Reviewed-by: Karl Wiberg Commit-Queue: Mirko Bonadei Cr-Commit-Position: refs/heads/master@{#27130} --- modules/remote_bitrate_estimator/test/packet_sender.cc | 3 ++- rtc_tools/frame_analyzer/video_temporal_aligner.cc | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/remote_bitrate_estimator/test/packet_sender.cc b/modules/remote_bitrate_estimator/test/packet_sender.cc index 45854637c3..247b2e5fd6 100644 --- a/modules/remote_bitrate_estimator/test/packet_sender.cc +++ b/modules/remote_bitrate_estimator/test/packet_sender.cc @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -422,7 +423,7 @@ int TcpSender::GetFeedbackIntervalMs() const { } void TcpSender::SendPackets(Packets* in_out) { - int cwnd = ceil(cwnd_); + int cwnd = std::ceil(cwnd_); int packets_to_send = std::max(cwnd - static_cast(in_flight_.size()), 0); int timed_out = TriggerTimeouts(); if (timed_out > 0) { diff --git a/rtc_tools/frame_analyzer/video_temporal_aligner.cc b/rtc_tools/frame_analyzer/video_temporal_aligner.cc index d03ec61078..42017c4808 100644 --- a/rtc_tools/frame_analyzer/video_temporal_aligner.cc +++ b/rtc_tools/frame_analyzer/video_temporal_aligner.cc @@ -84,9 +84,9 @@ class DownscaledVideo : public rtc::RefCountedObject