Bug 1333752 - Fix memset sizes in rtt_filter.cc. r=dminor, a=jcristau
authorRandell Jesup <rjesup@jesup.org>
Wed, 25 Jan 2017 13:28:13 -0500
changeset 375682 d4a9c3ed6ed9db6ba9038574c833a7d198ea2385
parent 375681 602af8c8550cce482cd53260ccf98e0bc7337449
child 375683 e35c1d17cc9ba97e680551fe291909fa0e2da96f
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdminor, jcristau
bugs1333752
milestone53.0a2
Bug 1333752 - Fix memset sizes in rtt_filter.cc. r=dminor, a=jcristau MozReview-Commit-ID: 3pnTseY4k2M
media/webrtc/trunk/webrtc/modules/video_coding/rtt_filter.cc
--- a/media/webrtc/trunk/webrtc/modules/video_coding/rtt_filter.cc
+++ b/media/webrtc/trunk/webrtc/modules/video_coding/rtt_filter.cc
@@ -44,18 +44,18 @@ VCMRttFilter& VCMRttFilter::operator=(co
 void VCMRttFilter::Reset() {
   _gotNonZeroUpdate = false;
   _avgRtt = 0;
   _varRtt = 0;
   _maxRtt = 0;
   _filtFactCount = 1;
   _jumpCount = 0;
   _driftCount = 0;
-  memset(_jumpBuf, 0, kMaxDriftJumpCount);
-  memset(_driftBuf, 0, kMaxDriftJumpCount);
+  memset(_jumpBuf, 0, sizeof(_jumpBuf));
+  memset(_driftBuf, 0, sizeof(_driftBuf));
 }
 
 void VCMRttFilter::Update(int64_t rttMs) {
   if (!_gotNonZeroUpdate) {
     if (rttMs == 0) {
       return;
     }
     _gotNonZeroUpdate = true;