Cleaned up further

This commit is contained in:
saxon 2018-07-14 01:58:23 +09:30
parent 391c9a538e
commit 8ab61598a9
1 changed files with 2 additions and 0 deletions

View File

@ -206,6 +206,8 @@ func rtmpWrite(r *C.RTMP, data []byte) int {
*(*byte)(enc) = *(*byte)(buf)
}
*/
// TODO: Can only remove this mem copy onc I port the RTMPPacket struct and
// AllocatPacket
C.memcpy(enc,buf,C.ulong(num))
pkt.m_nBytesRead += C.uint(num)
s2 -= num