From e22516d9cb0bfc50f68a86db727029c723936bfa Mon Sep 17 00:00:00 2001 From: saxon Date: Fri, 24 Aug 2018 10:30:24 +0930 Subject: [PATCH] rtmp: fixed order of struct declarations in amf_headers.go to match that of amf.h under C librtmp? --- rtmp/amf_headers.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/rtmp/amf_headers.go b/rtmp/amf_headers.go index 54d842ce..7ad0fc6b 100644 --- a/rtmp/amf_headers.go +++ b/rtmp/amf_headers.go @@ -53,6 +53,10 @@ const ( AMF_INVALID = 0xff ) +// typedef enum +// amf.h +40 +type C_AMFDataType int32 + // typedef struct C_AVal // amf.h +57 type C_AVal struct { @@ -60,10 +64,6 @@ type C_AVal struct { av_len int32 } -// typedef enum -// amf.h +40 -type C_AMFDataType int32 - // typedef struct AMF_Object // amf.h +67 type C_AMFObject struct { @@ -71,6 +71,14 @@ type C_AMFObject struct { o_props *C_AMFObjectProperty } +// typedef struct P_vu +// amf.h +73 +type P_vu struct { + p_number float64 + p_aval C_AVal + p_object C_AMFObject +} + // typedef struct AMFObjectProperty // amf.h +79 type C_AMFObjectProperty struct { @@ -79,11 +87,3 @@ type C_AMFObjectProperty struct { p_vu P_vu p_UTCoffset int16 } - -// typedef struct P_vu -// amf.h +73 -type P_vu struct { - p_number float64 - p_aval C_AVal - p_object C_AMFObject -}