From aef3cd3001daee475943292bc1cfdd965802b411 Mon Sep 17 00:00:00 2001 From: saxon Date: Wed, 15 Aug 2018 20:46:38 +0930 Subject: [PATCH] Using AMFProp_Decode everywhere -tested and working --- rtmp/rtmp.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 9ab97a33..8dd8e0a8 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -2802,8 +2802,10 @@ func C_AMF_Decode(obj *C.AMFObject, pBuffer *byte, nSize int32, bDecodeName int3 continue } // TODO port AMFProp_Decode - nRes = int32(C.AMFProp_Decode(&prop, (*C.char)(unsafe.Pointer(pBuffer)), - C.int(nSize), C.int(bDecodeName))) + nRes = int32(C_AMFProp_Decode(&prop, (*byte)(unsafe.Pointer(pBuffer)), + int32(nSize), int32(bDecodeName))) + // nRes = int32(C.AMFProp_Decode(&prop, (*C.char)(unsafe.Pointer(pBuffer)), + // C.int(nSize), C.int(bDecodeName))) if nRes == -1 { bError = 1 break