From f0b8dee11c63b609799fb8763ed34ac39a43d80c Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Fri, 15 Mar 2019 10:47:11 +0100 Subject: [PATCH] Qualify cmath functions. Bug: None Change-Id: Ibfc3bbe5a21743b623ab01ae9e021d322aee2a94 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/128083 Reviewed-by: Fredrik Solenberg Commit-Queue: Mirko Bonadei Cr-Commit-Position: refs/heads/master@{#27174} --- audio/remix_resample_unittest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audio/remix_resample_unittest.cc b/audio/remix_resample_unittest.cc index f1fb5f7dd0..25af6e7aba 100644 --- a/audio/remix_resample_unittest.cc +++ b/audio/remix_resample_unittest.cc @@ -8,7 +8,7 @@ * be found in the AUTHORS file in the root of the source tree. */ -#include +#include #include "audio/remix_resample.h" #include "common_audio/resampler/include/push_resampler.h" @@ -133,7 +133,7 @@ float ComputeSNR(const AudioFrame& ref_frame, } float snr = 100; // We assign 100 dB to the zero-error case. if (mse > 0) - snr = 10 * log10(variance / mse); + snr = 10 * std::log10(variance / mse); if (snr > best_snr) { best_snr = snr; best_delay = delay;