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
This commit is contained in:
parent
735478a397
commit
6b9253eb4f
@ -64,10 +64,12 @@ FilePlayerImpl::FilePlayerImpl(const WebRtc_UWord32 instanceID,
|
|||||||
_fileFormat(fileFormat),
|
_fileFormat(fileFormat),
|
||||||
_fileModule(*MediaFile::CreateMediaFile(instanceID)),
|
_fileModule(*MediaFile::CreateMediaFile(instanceID)),
|
||||||
_decodedLengthInMS(0),
|
_decodedLengthInMS(0),
|
||||||
|
_decodedAudioBuffer(),
|
||||||
_audioDecoder(instanceID),
|
_audioDecoder(instanceID),
|
||||||
_codec(),
|
_codec(),
|
||||||
_numberOf10MsPerFrame(0),
|
_numberOf10MsPerFrame(0),
|
||||||
_numberOf10MsInDecoder(0),
|
_numberOf10MsInDecoder(0),
|
||||||
|
_resampler(),
|
||||||
_scaling(1.0)
|
_scaling(1.0)
|
||||||
{
|
{
|
||||||
_codec.plfreq = 0;
|
_codec.plfreq = 0;
|
||||||
@ -466,11 +468,14 @@ VideoFilePlayerImpl::VideoFilePlayerImpl(WebRtc_UWord32 instanceID,
|
|||||||
FileFormats fileFormat)
|
FileFormats fileFormat)
|
||||||
: FilePlayerImpl(instanceID,fileFormat),
|
: FilePlayerImpl(instanceID,fileFormat),
|
||||||
_videoDecoder(*new VideoCoder(instanceID)),
|
_videoDecoder(*new VideoCoder(instanceID)),
|
||||||
|
video_codec_info_(),
|
||||||
_decodedVideoFrames(0),
|
_decodedVideoFrames(0),
|
||||||
_encodedData(*new EncodedVideoData()),
|
_encodedData(*new EncodedVideoData()),
|
||||||
_frameScaler(*new FrameScaler()),
|
_frameScaler(*new FrameScaler()),
|
||||||
_critSec(CriticalSectionWrapper::CreateCriticalSection()),
|
_critSec(CriticalSectionWrapper::CreateCriticalSection()),
|
||||||
|
_startTime(),
|
||||||
_accumulatedRenderTimeMs(0),
|
_accumulatedRenderTimeMs(0),
|
||||||
|
_frameLengthMS(0),
|
||||||
_numberOfFramesRead(0),
|
_numberOfFramesRead(0),
|
||||||
_videoOnly(false)
|
_videoOnly(false)
|
||||||
{
|
{
|
||||||
|
@ -65,8 +65,12 @@ FileRecorderImpl::FileRecorderImpl(WebRtc_UWord32 instanceID,
|
|||||||
: _instanceID(instanceID),
|
: _instanceID(instanceID),
|
||||||
_fileFormat(fileFormat),
|
_fileFormat(fileFormat),
|
||||||
_moduleFile(MediaFile::CreateMediaFile(_instanceID)),
|
_moduleFile(MediaFile::CreateMediaFile(_instanceID)),
|
||||||
|
_stream(NULL),
|
||||||
|
codec_info_(),
|
||||||
_amrFormat(AMRFileStorage),
|
_amrFormat(AMRFileStorage),
|
||||||
_audioEncoder(instanceID)
|
_audioBuffer(),
|
||||||
|
_audioEncoder(instanceID),
|
||||||
|
_audioResampler()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -353,7 +357,8 @@ class AudioFrameFileInfo
|
|||||||
const WebRtc_UWord16 audioSize,
|
const WebRtc_UWord16 audioSize,
|
||||||
const WebRtc_UWord16 audioMS,
|
const WebRtc_UWord16 audioMS,
|
||||||
const TickTime& playoutTS)
|
const TickTime& playoutTS)
|
||||||
: _audioSize(audioSize), _audioMS(audioMS) ,_playoutTS(playoutTS)
|
: _audioData(), _audioSize(audioSize), _audioMS(audioMS),
|
||||||
|
_playoutTS(playoutTS)
|
||||||
{
|
{
|
||||||
if(audioSize > MAX_AUDIO_BUFFER_IN_BYTES)
|
if(audioSize > MAX_AUDIO_BUFFER_IN_BYTES)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user