Fix after aosp/2836447 am: d664a63cf4

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2848064

Change-Id: I4c364ff7936054a59ea4fe81bed4772ff0e16d5a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Mikhail Naganov 2023-11-28 03:04:44 +00:00 committed by Automerger Merge Worker
commit 4b200f5e55

View file

@ -60,7 +60,7 @@ StreamPrimary::StreamPrimary(StreamContext* context, const Metadata& metadata)
} else {
LOG(DEBUG) << __func__ << ": skipping transfer (" << frameCount << " frames)";
*actualFrameCount = frameCount;
if (mIsInput) memset(buffer, 0, frameCount);
if (mIsInput) memset(buffer, 0, frameCount * mFrameSizeBytes);
mSkipNextTransfer = false;
}
if (!mIsAsynchronous) {