Having a lot of trouble

This commit is contained in:
saxon 2018-07-17 03:17:17 +09:30
parent 09682cd6a0
commit a24003af44
1 changed files with 3 additions and 2 deletions

View File

@ -336,7 +336,7 @@ func sendPacket(r *C.RTMP, packet *C.RTMPPacket, queue int) int {
} }
if cSize != 0 { if cSize != 0 {
header = decBytePtr(header,4) header = decBytePtr(header,cSize)
hSize += cSize hSize += cSize
} }
@ -380,9 +380,10 @@ func sendPacket(r *C.RTMP, packet *C.RTMPPacket, queue int) int {
} }
if nSize > 4 { if nSize > 4 {
*(*byte)(hptr) = byte(packet.m_packetType)
hptr = unsafe.Pointer(C.AMF_EncodeInt24((*C.char)(hptr), (*C.char)(hend), hptr = unsafe.Pointer(C.AMF_EncodeInt24((*C.char)(hptr), (*C.char)(hend),
C.int(packet.m_nBodySize))) C.int(packet.m_nBodySize)))
*(*byte)(hptr) = byte(packet.m_packetType)
hptr = incBytePtr(hptr,1)
} }
if nSize > 8 { if nSize > 8 {