diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 16680f8d..9ab97a33 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -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