From 0fc985d1c53639b86067d9343a8af313c023318d Mon Sep 17 00:00:00 2001 From: saxon Date: Sun, 29 Jul 2018 10:57:06 +0930 Subject: [PATCH] using my amfDecodeNumber in rtmpSendPacket - tested and working --- rtmp/rtmp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 87cd633e..c2149548 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -1493,8 +1493,8 @@ func rtmpSendPacket(r *C.RTMP, packet *C.RTMPPacket, queue int) int { if queue != 0 { var txn int ptr = incBytePtr(ptr, 3+int(method.av_len)) - txn = int(C.AMF_DecodeNumber((*C.char)(ptr))) - //txn = int(amfDecodeNumber((*byte)(ptr))) + //txn = int(C.AMF_DecodeNumber((*C.char)(ptr))) + txn = int(amfDecodeNumber((*byte)(ptr))) // TODO: port this C.AV_queue(&r.m_methodCalls, (*C.int)(unsafe.Pointer(&r.m_numCalls)), &method, C.int(txn))