mirror of https://bitbucket.org/ausocean/av.git
Having a lot of trouble
This commit is contained in:
parent
09682cd6a0
commit
a24003af44
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue