Bug 1227481 - added a memset on aec. r=jesup

This commit is contained in:
Bogdan Postelnicu 2015-12-02 05:05:00 +01:00
parent 18f1188eac
commit 1bb9612250

View File

@ -1492,6 +1492,9 @@ AecCore* WebRtcAec_CreateAec() {
return NULL;
}
// set the mem with 0 in order to prevent garbage data
memset(aec, 0, sizeof(*aec));
aec->nearFrBuf = WebRtc_CreateBuffer(FRAME_LEN + PART_LEN, sizeof(float));
if (!aec->nearFrBuf) {
WebRtcAec_FreeAec(aec);