Skip to content

Commit 33da899

Browse files
committed
Fix wrong memset at LFHardwareAudioEncoder
ref: LaiFengiOS#233
1 parent a4cf18e commit 33da899

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LFLiveKit/coder/LFHardwareAudioEncoder.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ - (void)encodeAudioData:(nullable NSData*)audioData timeStamp:(uint64_t)timeStam
6767
char *totalBuf = malloc(totalSize);
6868
char *p = totalBuf;
6969

70-
memset(totalBuf, (int)totalSize, 0);
70+
memset(totalBuf, 0, (int)totalSize);
7171
memcpy(totalBuf, leftBuf, leftLength);
7272
memcpy(totalBuf + leftLength, audioData.bytes, audioData.length);
7373

0 commit comments

Comments
 (0)