Bug 1333752: Fix memset sizes in rtt_filter.cc r=dminor
authorRandell Jesup <rjesup@jesup.org>
Wed, 25 Jan 2017 13:28:13 -0500
changeset 331030 4404f99d719acdad42f1939b7d4a55091b1854d7
parent 331029 85fec0c2e03736cfadd59792f64188abdcdd1eae
child 331031 3df827c3c6da15c55771bf43ec5aea1898aaa09f
push id31258
push userkwierso@gmail.com
push dateThu, 26 Jan 2017 00:56:03 +0000
treeherdermozilla-central@52a34f9a6cf1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdminor
bugs1333752
milestone54.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1333752: Fix memset sizes in rtt_filter.cc r=dminor 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;