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