diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index f9f6a2e0..435c2d1a 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -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