Fix uninitialized variable error in Relase mode.

TBR=mflodman@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/377007

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1611 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
wu@webrtc.org 2012-02-06 16:19:15 +00:00
parent 517e5e3846
commit 13e0345b35
2 changed files with 8 additions and 8 deletions

View File

@ -566,13 +566,13 @@ WebRtc_Word16 WebRtcIsac_Encode(
float inFrame[FRAMESAMPLES_10ms];
WebRtc_Word16 speechInLB[FRAMESAMPLES_10ms];
WebRtc_Word16 speechInUB[FRAMESAMPLES_10ms];
WebRtc_Word16 streamLenLB;
WebRtc_Word16 streamLenUB;
WebRtc_Word16 streamLen;
WebRtc_Word16 k;
WebRtc_Word16 streamLenLB = 0;
WebRtc_Word16 streamLenUB = 0;
WebRtc_Word16 streamLen = 0;
WebRtc_Word16 k = 0;
WebRtc_UWord8* ptrEncodedUW8 = (WebRtc_UWord8*)encoded;
int garbageLen;
WebRtc_Word32 bottleneck;
int garbageLen = 0;
WebRtc_Word32 bottleneck = 0;
WebRtc_Word16 bottleneckIdx = 0;
WebRtc_Word16 jitterInfo = 0;
@ -1638,7 +1638,7 @@ WebRtc_Word16 WebRtcIsac_DecodePlc(
WebRtc_Word16* decoded,
WebRtc_Word16 noOfLostFrames)
{
WebRtc_Word16 numSamples;
WebRtc_Word16 numSamples = 0;
ISACMainStruct* instISAC;

View File

@ -330,7 +330,7 @@ AudioCodingModuleImpl::Process()
WebRtc_Word16 status;
WebRtcACMEncodingType encodingType;
FrameType frameType = kAudioFrameSpeech;
WebRtc_UWord8 currentPayloadType;
WebRtc_UWord8 currentPayloadType = 0;
bool hasDataToSend = false;
bool fecActive = false;