From 1e6bf462da7050d1d10f1c480a51041b29e6a7e2 Mon Sep 17 00:00:00 2001 From: saxon Date: Wed, 15 Aug 2018 20:43:47 +0930 Subject: [PATCH] Chedk that everything is working --- rtmp/rtmp.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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