From c967824d3bc0e41902e009f73046fa2a57f59a26 Mon Sep 17 00:00:00 2001 From: saxon Date: Sat, 4 Aug 2018 13:08:52 +0930 Subject: [PATCH] Updating some C code to make more usable --- rtmp/rtmp_c/librtmp/amf.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/rtmp/rtmp_c/librtmp/amf.h b/rtmp/rtmp_c/librtmp/amf.h index 5de414ba..b061edb9 100644 --- a/rtmp/rtmp_c/librtmp/amf.h +++ b/rtmp/rtmp_c/librtmp/amf.h @@ -70,16 +70,17 @@ extern "C" struct AMFObjectProperty *o_props; } AMFObject; + typedef struct P_vu { + double p_number; + AVal p_aval; + AMFObject p_object; + } P_vu; + typedef struct AMFObjectProperty { AVal p_name; AMFDataType p_type; - union - { - double p_number; - AVal p_aval; - AMFObject p_object; - } p_vu; + P_vu p_vu; int16_t p_UTCoffset; } AMFObjectProperty;