⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 264654 in webkit


Ignore:
Timestamp:
Jul 21, 2020, 8:42:30 AM (6 years ago)
Author:
youenn@apple.com
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:
Location:
trunk/Source/ThirdParty/libwebrtc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/ThirdParty/libwebrtc/ChangeLog

    r264606 r264654  
     12020-07-21  Youenn Fablet  <youenn@apple.com>
     2
     3        Resync filter_analyzer.cc up to upstream libwebrtc
     4        https://bugs.webkit.org/show_bug.cgi?id=214592
     5        <rdar://problem/65247051>
     6
     7        Reviewed by Eric Carlson.
     8
     9        * Source/webrtc/modules/audio_processing/aec3/filter_analyzer.cc:
     10
    1112020-07-20  Youenn Fablet  <youenn@apple.com>
    212
  • trunk/Source/ThirdParty/libwebrtc/Source/webrtc/modules/audio_processing/aec3/filter_analyzer.cc

    r259345 r264654  
    117117  for (size_t ch = 0; ch < filters_time_domain.size(); ++ch) {
    118118    RTC_DCHECK_LT(region_.start_sample_, filters_time_domain[ch].size());
    119     RTC_DCHECK_LT(filter_analysis_states_[ch].peak_index,
    120                   filters_time_domain[0].size());
    121119    RTC_DCHECK_LT(region_.end_sample_, filters_time_domain[ch].size());
    122120
    123121    auto& st_ch = filter_analysis_states_[ch];
    124122    RTC_DCHECK_EQ(h_highpass_[ch].size(), filters_time_domain[ch].size());
     123    RTC_DCHECK_GT(h_highpass_[ch].size(), 0);
     124    st_ch.peak_index = std::min(st_ch.peak_index, h_highpass_[ch].size() - 1);
    125125
    126126    st_ch.peak_index =
Note: See TracChangeset for help on using the changeset viewer.