diff --git a/LFLiveKit/coder/LFHardwareAudioEncoder.m b/LFLiveKit/coder/LFHardwareAudioEncoder.m index 64f97225..dd5eee16 100755 --- a/LFLiveKit/coder/LFHardwareAudioEncoder.m +++ b/LFLiveKit/coder/LFHardwareAudioEncoder.m @@ -67,7 +67,8 @@ - (void)encodeAudioData:(nullable NSData*)audioData timeStamp:(uint64_t)timeStam char *totalBuf = malloc(totalSize); char *p = totalBuf; - memset(totalBuf, (int)totalSize, 0); +// memset(totalBuf, (int)totalSize, 0); + memset(totalBuf, 0, (int)totalSize); memcpy(totalBuf, leftBuf, leftLength); memcpy(totalBuf + leftLength, audioData.bytes, audioData.length);