Removed memcpy of pointer to itself, triggering Valgrind warning.

BUG=272
Review URL: https://webrtc-codereview.appspot.com/389002

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1628 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
bjornv@webrtc.org 2012-02-07 17:22:44 +00:00
parent 59f16ec993
commit 236e842bca

View File

@ -337,10 +337,10 @@ WebRtc_Word32 WebRtcAecm_Process(void *aecmInst, const WebRtc_Word16 *nearendNoi
if (aecm->ECstartup)
{
if (nearendClean == NULL)
if ((nearendClean == NULL) && (nearendNoisy != out))
{
memcpy(out, nearendNoisy, sizeof(short) * nrOfSamples);
} else
} else if (nearendClean != out)
{
memcpy(out, nearendClean, sizeof(short) * nrOfSamples);
}