Revert r1628 which causes the crash of voe_auto_test.
With r1628, it's possible the second memcpy got a NULL nearendClean. TBR=bjornv Review URL: https://webrtc-codereview.appspot.com/390005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1643 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
		| @@ -337,10 +337,10 @@ WebRtc_Word32 WebRtcAecm_Process(void *aecmInst, const WebRtc_Word16 *nearendNoi | ||||
|  | ||||
|     if (aecm->ECstartup) | ||||
|     { | ||||
|         if ((nearendClean == NULL) && (nearendNoisy != out)) | ||||
|         if (nearendClean == NULL) | ||||
|         { | ||||
|             memcpy(out, nearendNoisy, sizeof(short) * nrOfSamples); | ||||
|         } else if (nearendClean != out) | ||||
|         } else | ||||
|         { | ||||
|             memcpy(out, nearendClean, sizeof(short) * nrOfSamples); | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 wu@webrtc.org
					wu@webrtc.org