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