Coverty report: Unititialized members

Review URL: http://webrtc-codereview.appspot.com/349007

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1436 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
pwestin@webrtc.org 2012-01-17 07:07:37 +00:00
parent 43b8fc5c0d
commit aafa5a331c
3 changed files with 40 additions and 46 deletions

View File

@ -17,24 +17,25 @@
namespace webrtc { namespace webrtc {
using namespace RTCPHelp; using namespace RTCPHelp;
RTCPPacketInformation::RTCPPacketInformation() : RTCPPacketInformation::RTCPPacketInformation()
rtcpPacketTypeFlags(0), : rtcpPacketTypeFlags(0),
nackSequenceNumbers(0), remoteSSRC(0),
nackSequenceNumbersLength(0), nackSequenceNumbers(0),
applicationSubType(0), nackSequenceNumbersLength(0),
applicationName(0), applicationSubType(0),
applicationData(), applicationName(0),
applicationLength(0), applicationData(),
reportBlock(false), applicationLength(0),
fractionLost(0), reportBlock(false),
roundTripTime(0), fractionLost(0),
lastReceivedExtendedHighSeqNum(0), roundTripTime(0),
jitter(0), lastReceivedExtendedHighSeqNum(0),
interArrivalJitter(0), jitter(0),
sliPictureId(0), interArrivalJitter(0),
rpsiPictureId(0), sliPictureId(0),
VoIPMetric(NULL) rpsiPictureId(0),
{ receiverEstimatedMaxBitrate(0),
VoIPMetric(NULL) {
} }
RTCPPacketInformation::~RTCPPacketInformation() RTCPPacketInformation::~RTCPPacketInformation()

View File

@ -29,27 +29,22 @@ RTCPUtility::RTCPCnameInformation::~RTCPCnameInformation()
/////////// ///////////
// RTCPParserV2 : currently read only // RTCPParserV2 : currently read only
RTCPUtility::RTCPParserV2::RTCPParserV2( const WebRtc_UWord8* rtcpData, RTCPUtility::RTCPParserV2::RTCPParserV2(const WebRtc_UWord8* rtcpData,
size_t rtcpDataLength, size_t rtcpDataLength,
bool rtcpReducedSizeEnable) bool rtcpReducedSizeEnable)
: : _ptrRTCPDataBegin(rtcpData),
_ptrRTCPDataBegin(rtcpData), _RTCPReducedSizeEnable(rtcpReducedSizeEnable),
_RTCPReducedSizeEnable(rtcpReducedSizeEnable), _ptrRTCPDataEnd(rtcpData + rtcpDataLength),
_ptrRTCPDataEnd(rtcpData + rtcpDataLength), _validPacket(false),
_ptrRTCPData(rtcpData),
_validPacket(false), _ptrRTCPBlockEnd(NULL),
_ptrRTCPData(rtcpData), _state(State_TopLevel),
_numberOfBlocks(0),
_state(State_TopLevel), _packetType(kRtcpNotValidCode) {
_numberOfBlocks(0), Validate();
_packetType(kRtcpNotValidCode)
{
Validate();
} }
RTCPUtility::RTCPParserV2::~RTCPParserV2() RTCPUtility::RTCPParserV2::~RTCPParserV2() {
{
} }
ptrdiff_t ptrdiff_t
@ -1475,17 +1470,15 @@ RTCPUtility::RTCPParserV2::ParseAPPItem()
return true; return true;
} }
RTCPUtility::RTCPPacketIterator::RTCPPacketIterator( RTCPUtility::RTCPPacketIterator::RTCPPacketIterator(WebRtc_UWord8* rtcpData,
WebRtc_UWord8* rtcpData, size_t rtcpDataLength)
size_t rtcpDataLength) : _ptrBegin(rtcpData),
: _ptrEnd(rtcpData + rtcpDataLength),
_ptrBegin(rtcpData), _ptrBlock(NULL) {
_ptrEnd(rtcpData + rtcpDataLength) memset(&_header, 0, sizeof(_header));
{
} }
RTCPUtility::RTCPPacketIterator::~RTCPPacketIterator() RTCPUtility::RTCPPacketIterator::~RTCPPacketIterator() {
{
} }
const RTCPUtility::RTCPCommonHeader* const RTCPUtility::RTCPCommonHeader*

View File

@ -40,8 +40,8 @@ RTPSenderAudio::RTPSenderAudio(const WebRtc_Word32 id, RtpRtcpClock* clock,
_cngSWBPayloadType(-1), _cngSWBPayloadType(-1),
_lastPayloadType(-1), _lastPayloadType(-1),
_includeAudioLevelIndication(false), // @TODO - reset at Init()? _includeAudioLevelIndication(false), // @TODO - reset at Init()?
_audioLevelIndicationID(0) _audioLevelIndicationID(0),
{ _audioLevel_dBov(0) {
}; };
RTPSenderAudio::~RTPSenderAudio() RTPSenderAudio::~RTPSenderAudio()