From 57a0049e255bd74fc42b3b7355b8018d01875088 Mon Sep 17 00:00:00 2001 From: "mikhal@webrtc.org" Date: Mon, 11 Feb 2013 21:23:23 +0000 Subject: [PATCH] VCM: Removing frame drop enable from Reset call BUG = 1387 Review URL: https://webrtc-codereview.appspot.com/1097010 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3500 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/modules/video_coding/main/source/frame_dropper.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webrtc/modules/video_coding/main/source/frame_dropper.cc b/webrtc/modules/video_coding/main/source/frame_dropper.cc index 47aa819fb3..09d031c6b6 100644 --- a/webrtc/modules/video_coding/main/source/frame_dropper.cc +++ b/webrtc/modules/video_coding/main/source/frame_dropper.cc @@ -20,7 +20,8 @@ VCMFrameDropper::VCMFrameDropper(WebRtc_Word32 vcmId) _vcmId(vcmId), _keyFrameSizeAvgKbits(0.9f), _keyFrameRatio(0.99f), -_dropRatio(0.9f, 0.96f) +_dropRatio(0.9f, 0.96f), +_enabled(true) { Reset(); } @@ -43,7 +44,6 @@ VCMFrameDropper::Reset() _dropCount = 0; _windowSize = 0.5f; _wasBelowMax = true; - _enabled = true; _fastMode = false; // start with normal (non-aggressive) mode // Cap for the encoder buffer level/accumulator, in secs. _cap_buffer_size = 3.0f;