Raphael Kubo da Costa <raphael.kubo.da.co...@intel.com> writes: > Can you check if the attached patch also solves the WebRTC build issue > for you? I've tried it here with Yocto's morty branch and GCC 5.4.0. > > If so, I'll send it upstream, as the original approach > (https://webrtc-review.googlesource.com/c/src/+/8641) was not accepted > by the WebRTC maintainers.
Sorry, I'm attaching patch v2, the original version had an extra, unwanted chunk.
--- a/third_party/webrtc/modules/audio_processing/aec3/aec_state.cc 2017-10-16 16:31:47.636478663 +0200 +++ b/third_party/webrtc/modules/audio_processing/aec3/aec_state.cc 2017-10-16 16:31:45.329471819 +0200 @@ -271,9 +271,9 @@ auto result_x = std::minmax_element(x.begin(), x.end()); auto result_s = std::minmax_element(s.begin(), s.end()); const float x_abs = - std::max(std::abs(*result_x.first), std::abs(*result_x.second)); + std::max(fabsf(*result_x.first), fabsf(*result_x.second)); const float s_abs = - std::max(std::abs(*result_s.first), std::abs(*result_s.second)); + std::max(fabsf(*result_s.first), fabsf(*result_s.second)); if (x_abs < 5.f) { ++low_farend_counter_; @@ -294,7 +294,7 @@ void AecState::EchoAudibility::UpdateWithOutput(rtc::ArrayView<const float> e) { const float e_max = *std::max_element(e.begin(), e.end()); const float e_min = *std::min_element(e.begin(), e.end()); - const float e_abs = std::max(std::abs(e_max), std::abs(e_min)); + const float e_abs = std::max(fabsf(e_max), fabsf(e_min)); if (max_nearend_ < e_abs) { max_nearend_ = e_abs;
-- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel