From e680fc76fa31dc23027cd512bc6d4f88db68a2e8 Mon Sep 17 00:00:00 2001 From: saxon Date: Sat, 11 Aug 2018 13:54:25 +0930 Subject: [PATCH] Using my C_DecodeInt32LE func - tested and working --- rtmp/rtmp.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index b4036865..c0646622 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -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)))) } } }