From 6b9253eb4f35ec9ef0a066df7fa89bab7041440c Mon Sep 17 00:00:00 2001 From: "henrike@webrtc.org" Date: Wed, 15 Feb 2012 18:48:16 +0000 Subject: [PATCH] Fixe issues reported by Coverity for modules/utility. BUG=From Coverity TEST=N/A Review URL: https://webrtc-codereview.appspot.com/389011 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1695 4adac7df-926f-26a2-2b94-8c16560cd09d --- src/modules/utility/source/file_player_impl.cc | 5 +++++ src/modules/utility/source/file_recorder_impl.cc | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/modules/utility/source/file_player_impl.cc b/src/modules/utility/source/file_player_impl.cc index f2162a66b..af7d615f3 100644 --- a/src/modules/utility/source/file_player_impl.cc +++ b/src/modules/utility/source/file_player_impl.cc @@ -64,10 +64,12 @@ FilePlayerImpl::FilePlayerImpl(const WebRtc_UWord32 instanceID, _fileFormat(fileFormat), _fileModule(*MediaFile::CreateMediaFile(instanceID)), _decodedLengthInMS(0), + _decodedAudioBuffer(), _audioDecoder(instanceID), _codec(), _numberOf10MsPerFrame(0), _numberOf10MsInDecoder(0), + _resampler(), _scaling(1.0) { _codec.plfreq = 0; @@ -466,11 +468,14 @@ VideoFilePlayerImpl::VideoFilePlayerImpl(WebRtc_UWord32 instanceID, FileFormats fileFormat) : FilePlayerImpl(instanceID,fileFormat), _videoDecoder(*new VideoCoder(instanceID)), + video_codec_info_(), _decodedVideoFrames(0), _encodedData(*new EncodedVideoData()), _frameScaler(*new FrameScaler()), _critSec(CriticalSectionWrapper::CreateCriticalSection()), + _startTime(), _accumulatedRenderTimeMs(0), + _frameLengthMS(0), _numberOfFramesRead(0), _videoOnly(false) { diff --git a/src/modules/utility/source/file_recorder_impl.cc b/src/modules/utility/source/file_recorder_impl.cc index 15a447237..1ae4f30fa 100644 --- a/src/modules/utility/source/file_recorder_impl.cc +++ b/src/modules/utility/source/file_recorder_impl.cc @@ -65,8 +65,12 @@ FileRecorderImpl::FileRecorderImpl(WebRtc_UWord32 instanceID, : _instanceID(instanceID), _fileFormat(fileFormat), _moduleFile(MediaFile::CreateMediaFile(_instanceID)), + _stream(NULL), + codec_info_(), _amrFormat(AMRFileStorage), - _audioEncoder(instanceID) + _audioBuffer(), + _audioEncoder(instanceID), + _audioResampler() { } @@ -353,7 +357,8 @@ class AudioFrameFileInfo const WebRtc_UWord16 audioSize, const WebRtc_UWord16 audioMS, const TickTime& playoutTS) - : _audioSize(audioSize), _audioMS(audioMS) ,_playoutTS(playoutTS) + : _audioData(), _audioSize(audioSize), _audioMS(audioMS), + _playoutTS(playoutTS) { if(audioSize > MAX_AUDIO_BUFFER_IN_BYTES) {