rtmp: fixed order of struct declarations in amf_headers.go to match that of amf.h under C librtmp?

This commit is contained in:
saxon 2018-08-24 10:30:24 +09:30
parent dfa146f276
commit e22516d9cb
1 changed files with 12 additions and 12 deletions

View File

@ -53,6 +53,10 @@ const (
AMF_INVALID = 0xff AMF_INVALID = 0xff
) )
// typedef enum
// amf.h +40
type C_AMFDataType int32
// typedef struct C_AVal // typedef struct C_AVal
// amf.h +57 // amf.h +57
type C_AVal struct { type C_AVal struct {
@ -60,10 +64,6 @@ type C_AVal struct {
av_len int32 av_len int32
} }
// typedef enum
// amf.h +40
type C_AMFDataType int32
// typedef struct AMF_Object // typedef struct AMF_Object
// amf.h +67 // amf.h +67
type C_AMFObject struct { type C_AMFObject struct {
@ -71,6 +71,14 @@ type C_AMFObject struct {
o_props *C_AMFObjectProperty 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 // typedef struct AMFObjectProperty
// amf.h +79 // amf.h +79
type C_AMFObjectProperty struct { type C_AMFObjectProperty struct {
@ -79,11 +87,3 @@ type C_AMFObjectProperty struct {
p_vu P_vu p_vu P_vu
p_UTCoffset int16 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
}