We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e174797 commit f6172faCopy full SHA for f6172fa
services/audioflinger/Threads.cpp
@@ -5223,6 +5223,7 @@ void AudioFlinger::RecordThread::readInputParameters()
5223
mBufferSize = mInput->stream->common.get_buffer_size(&mInput->stream->common);
5224
mFrameCount = mBufferSize / mFrameSize;
5225
mRsmpInBuffer = new int16_t[mFrameCount * mChannelCount];
5226
+ memset(mRsmpInBuffer, 0, mFrameCount * mChannelCount * sizeof(mRsmpInBuffer[0]));
5227
5228
if (mSampleRate != mReqSampleRate && mChannelCount <= FCC_2 && mReqChannelCount <= FCC_2)
5229
{
0 commit comments