From 6584e5800131dbda94acac8dd4533b356afaf1ba Mon Sep 17 00:00:00 2001 From: "marpan@webrtc.org" Date: Mon, 6 Feb 2012 19:02:54 +0000 Subject: [PATCH] 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 --- src/modules/video_coding/main/source/qm_select.cc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/modules/video_coding/main/source/qm_select.cc b/src/modules/video_coding/main/source/qm_select.cc index 3ee9fb580..99fc89d1b 100644 --- a/src/modules/video_coding/main/source/qm_select.cc +++ b/src/modules/video_coding/main/source/qm_select.cc @@ -23,9 +23,14 @@ namespace webrtc { // QM-METHOD class VCMQmMethod::VCMQmMethod() -{ - _contentMetrics = new VideoContentMetrics(); - ResetQM(); + : _contentMetrics(new VideoContentMetrics()), + _width(0), + _height(0), + _nativeWidth(0), + _nativeHeight(0), + _nativeFrameRate(0), + _init(false) { + ResetQM(); } VCMQmMethod::~VCMQmMethod() @@ -727,6 +732,7 @@ VCMQmRobustness::Reset() _prevTotalRate = 0.0f; _prevRttTime = 0; _prevPacketLoss = 0; + _prevCodeRateDelta = 0; ResetQM(); return; }