From 91adaaaab6d980a497d76ebdae6894642f04c7e8 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Fri, 20 Sep 2019 14:05:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E6=BB=9A=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtmp/amf.cpp | 4 ++-- src/Rtmp/amf.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Rtmp/amf.cpp b/src/Rtmp/amf.cpp index a63e491e..89014856 100644 --- a/src/Rtmp/amf.cpp +++ b/src/Rtmp/amf.cpp @@ -76,8 +76,8 @@ inline void AMFValue::init() { } } -AMFValue::AMFValue() : - _type(AMF_NULL) { +AMFValue::AMFValue(AMFType type) : + _type(type) { init(); } diff --git a/src/Rtmp/amf.h b/src/Rtmp/amf.h index 7e5ed0ac..ead844d8 100644 --- a/src/Rtmp/amf.h +++ b/src/Rtmp/amf.h @@ -55,7 +55,7 @@ public: typedef std::map mapType; typedef std::vector arrayType; - AMFValue(); + AMFValue(AMFType type = AMF_NULL); AMFValue(const char *s); AMFValue(const std::string &s); AMFValue(double n);