diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /third_party/libwebrtc/moz-patch-stack/0012.patch | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/libwebrtc/moz-patch-stack/0012.patch')
-rw-r--r-- | third_party/libwebrtc/moz-patch-stack/0012.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/third_party/libwebrtc/moz-patch-stack/0012.patch b/third_party/libwebrtc/moz-patch-stack/0012.patch new file mode 100644 index 0000000000..646a3d07d8 --- /dev/null +++ b/third_party/libwebrtc/moz-patch-stack/0012.patch @@ -0,0 +1,37 @@ +From: Dan Minor <dminor@mozilla.com> +Date: Mon, 13 Aug 2018 10:24:00 -0400 +Subject: Bug 1376873 - Fix warning in mean_variance_estimator.cc; r=padenot + +Differential Revision: https://phabricator.services.mozilla.com/D7470 +Mercurial Revision: https://hg.mozilla.org/mozilla-central/rev/cb6c555654c0bca72999f1e414d8d6d0b59186c9 +--- + .../echo_detector/mean_variance_estimator.cc | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/modules/audio_processing/echo_detector/mean_variance_estimator.cc b/modules/audio_processing/echo_detector/mean_variance_estimator.cc +index a85740387b..a9ebb8cd92 100644 +--- a/modules/audio_processing/echo_detector/mean_variance_estimator.cc ++++ b/modules/audio_processing/echo_detector/mean_variance_estimator.cc +@@ -10,7 +10,7 @@ + + #include "modules/audio_processing/echo_detector/mean_variance_estimator.h" + +-#include <math.h> ++#include <cmath> + + #include "rtc_base/checks.h" + +@@ -26,8 +26,8 @@ void MeanVarianceEstimator::Update(float value) { + mean_ = (1.f - kAlpha) * mean_ + kAlpha * value; + variance_ = + (1.f - kAlpha) * variance_ + kAlpha * (value - mean_) * (value - mean_); +- RTC_DCHECK(isfinite(mean_)); +- RTC_DCHECK(isfinite(variance_)); ++ RTC_DCHECK(std::isfinite(mean_)); ++ RTC_DCHECK(std::isfinite(variance_)); + } + + float MeanVarianceEstimator::std_deviation() const { +-- +2.34.1 + |