Coverity fix for issues 10325,10326.

Review URL: https://webrtc-codereview.appspot.com/377001

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1613 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
marpan@webrtc.org 2012-02-06 19:02:54 +00:00
parent 56b85c6ba8
commit 6584e58001

View File

@ -23,9 +23,14 @@ namespace webrtc {
// QM-METHOD class // QM-METHOD class
VCMQmMethod::VCMQmMethod() VCMQmMethod::VCMQmMethod()
{ : _contentMetrics(new VideoContentMetrics()),
_contentMetrics = new VideoContentMetrics(); _width(0),
ResetQM(); _height(0),
_nativeWidth(0),
_nativeHeight(0),
_nativeFrameRate(0),
_init(false) {
ResetQM();
} }
VCMQmMethod::~VCMQmMethod() VCMQmMethod::~VCMQmMethod()
@ -727,6 +732,7 @@ VCMQmRobustness::Reset()
_prevTotalRate = 0.0f; _prevTotalRate = 0.0f;
_prevRttTime = 0; _prevRttTime = 0;
_prevPacketLoss = 0; _prevPacketLoss = 0;
_prevCodeRateDelta = 0;
ResetQM(); ResetQM();
return; return;
} }