mirror of https://bitbucket.org/ausocean/av.git
Chedk that everything is working
This commit is contained in:
parent
8be354a6d5
commit
1e6bf462da
|
@ -2693,8 +2693,10 @@ func C_RTMP_ReadPacket(r *C.RTMP, packet *C.RTMPPacket) int32 {
|
|||
return 0
|
||||
}
|
||||
// TODO: port this
|
||||
packet.m_nTimeStamp = C.uint32_t(C.AMF_DecodeInt32((*C.char)(incBytePtr(
|
||||
packet.m_nTimeStamp = C.uint32_t(C_AMF_DecodeInt32((*byte)(incBytePtr(
|
||||
unsafe.Pointer(header), int(nSize)))))
|
||||
//packet.m_nTimeStamp = C.uint32_t(C.AMF_DecodeInt32((*C.char)(incBytePtr(
|
||||
//unsafe.Pointer(header), int(nSize)))))
|
||||
hSize += 4
|
||||
}
|
||||
|
||||
|
@ -2964,7 +2966,7 @@ func C_AMFProp_Decode(prop *C.AMFObjectProperty, pBuffer *byte, nSize, bDecodeNa
|
|||
}
|
||||
|
||||
prop.p_vu.p_number = C.double(C_AMF_DecodeNumber(pBuffer))
|
||||
prop.p_UTCoffset = C.short(C_AMF_DecodeInt16((*byte)(incBytePtr(unsafe.Pointer(pBuffer), 8))))
|
||||
prop.p_UTCoffset = C.int16_t(C_AMF_DecodeInt16((*byte)(incBytePtr(unsafe.Pointer(pBuffer), 8))))
|
||||
|
||||
nSize -= 10
|
||||
|
||||
|
|
Loading…
Reference in New Issue