From 58376a3040aee6ad42df0244170ba2b530e4ab58 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Thu, 9 Aug 2018 11:07:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dhttp-flv=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Http/HttpSession.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Http/HttpSession.cpp b/src/Http/HttpSession.cpp index 2e4a9600..e3a22139 100644 --- a/src/Http/HttpSession.cpp +++ b/src/Http/HttpSession.cpp @@ -744,7 +744,7 @@ void HttpSession::sendRtmp(const RtmpPacket::Ptr &pkt, uint32_t ui32TimeStamp) { set_be24(header.timestamp,ui32TimeStamp & 0xFFFFFF); send((char *)&header, sizeof(header));//send tag header send(std::make_shared(pkt));//send tag data - m_previousTagSize += (pkt->strBuf.size() + sizeof(header) + 4); + m_previousTagSize += (pkt->strBuf.size() + sizeof(header)); m_ticker.resetTime(); } @@ -758,7 +758,7 @@ void HttpSession::sendRtmp(uint8_t ui8Type, const std::string& strBuf, uint32_t set_be24(header.timestamp,ui32TimeStamp & 0xFFFFFF); send((char *)&header, sizeof(header));//send tag header send(strBuf);//send tag data - m_previousTagSize += (strBuf.size() + sizeof(header) + 4); + m_previousTagSize += (strBuf.size() + sizeof(header)); m_ticker.resetTime(); }