From afb90f68edaba67fa3e6f9720e0c4d20a3caea4d Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Wed, 17 May 2017 17:21:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=9C=89=E4=BA=9Brtmp?= =?UTF-8?q?=E6=B5=81=E7=94=B1=E4=BA=8EbodySize=E4=B8=BA0=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=92=AD=E6=94=BE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtmp/RtmpProtocol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rtmp/RtmpProtocol.cpp b/src/Rtmp/RtmpProtocol.cpp index 8006e8f6..ac02b0a1 100644 --- a/src/Rtmp/RtmpProtocol.cpp +++ b/src/Rtmp/RtmpProtocol.cpp @@ -509,7 +509,7 @@ void RtmpProtocol::handle_rtmp() { iOffset += 4; } - if (chunkData.bodySize == 0 || chunkData.bodySize < chunkData.strBuf.size()) { + if (chunkData.bodySize < chunkData.strBuf.size()) { throw std::runtime_error("非法的bodySize"); }