Using my C_DecodeInt32LE func - tested and working

This commit is contained in:
saxon 2018-08-11 13:54:25 +09:30
parent d480f427c1
commit e680fc76fa
1 changed files with 3 additions and 1 deletions

View File

@ -1847,8 +1847,10 @@ func C_RTMP_ReadPacket(r *C.RTMP, packet *C.RTMPPacket) int32 {
if nSize == 11 {
// TODO: port this
packet.m_nInfoField2 = C.int32_t(C.DecodeInt32LE((*C.char)(incBytePtr(
packet.m_nInfoField2 = C.int32_t(C_DecodeInt32LE((*byte)(incBytePtr(
unsafe.Pointer(header), 7))))
//packet.m_nInfoField2 = C.int32_t(C.DecodeInt32LE((*C.char)(incBytePtr(
//unsafe.Pointer(header), 7))))
}
}
}