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))