Title: [264654] trunk/Source/ThirdParty/libwebrtc
Revision
264654
Author
you...@apple.com
Date
2020-07-21 08:42:30 -0700 (Tue, 21 Jul 2020)

Log Message

Resync filter_analyzer.cc up to upstream libwebrtc
https://bugs.webkit.org/show_bug.cgi?id=214592
<rdar://problem/65247051>

Reviewed by Eric Carlson.

* Source/webrtc/modules/audio_processing/aec3/filter_analyzer.cc:

Modified Paths

Diff

Modified: trunk/Source/ThirdParty/libwebrtc/ChangeLog (264653 => 264654)


--- trunk/Source/ThirdParty/libwebrtc/ChangeLog	2020-07-21 14:00:51 UTC (rev 264653)
+++ trunk/Source/ThirdParty/libwebrtc/ChangeLog	2020-07-21 15:42:30 UTC (rev 264654)
@@ -1,3 +1,13 @@
+2020-07-21  Youenn Fablet  <you...@apple.com>
+
+        Resync filter_analyzer.cc up to upstream libwebrtc
+        https://bugs.webkit.org/show_bug.cgi?id=214592
+        <rdar://problem/65247051>
+
+        Reviewed by Eric Carlson.
+
+        * Source/webrtc/modules/audio_processing/aec3/filter_analyzer.cc:
+
 2020-07-20  Youenn Fablet  <you...@apple.com>
 
         Fix buggy assert in h265_vps_sps_pps_tracker.cc

Modified: trunk/Source/ThirdParty/libwebrtc/Source/webrtc/modules/audio_processing/aec3/filter_analyzer.cc (264653 => 264654)


--- trunk/Source/ThirdParty/libwebrtc/Source/webrtc/modules/audio_processing/aec3/filter_analyzer.cc	2020-07-21 14:00:51 UTC (rev 264653)
+++ trunk/Source/ThirdParty/libwebrtc/Source/webrtc/modules/audio_processing/aec3/filter_analyzer.cc	2020-07-21 15:42:30 UTC (rev 264654)
@@ -116,12 +116,12 @@
   constexpr float kOneByBlockSize = 1.f / kBlockSize;
   for (size_t ch = 0; ch < filters_time_domain.size(); ++ch) {
     RTC_DCHECK_LT(region_.start_sample_, filters_time_domain[ch].size());
-    RTC_DCHECK_LT(filter_analysis_states_[ch].peak_index,
-                  filters_time_domain[0].size());
     RTC_DCHECK_LT(region_.end_sample_, filters_time_domain[ch].size());
 
     auto& st_ch = filter_analysis_states_[ch];
     RTC_DCHECK_EQ(h_highpass_[ch].size(), filters_time_domain[ch].size());
+    RTC_DCHECK_GT(h_highpass_[ch].size(), 0);
+    st_ch.peak_index = std::min(st_ch.peak_index, h_highpass_[ch].size() - 1);
 
     st_ch.peak_index =
         FindPeakIndex(h_highpass_[ch], st_ch.peak_index, region_.start_sample_,
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to