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:
wu@webrtc.org 2012-02-08 17:56:39 +00:00
parent 0da6c85cfa
commit a8084b07e3

View File

@ -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);
}