mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
修复rtmp bodySize为0崩溃的bug
This commit is contained in:
parent
afb90f68ed
commit
6d28fff604
@ -522,7 +522,9 @@ void RtmpProtocol::handle_rtmp() {
|
||||
m_strRcvBuf.erase(0, iHeaderLen + iOffset + iMore);
|
||||
if (chunkData.strBuf.size() == chunkData.bodySize) {
|
||||
m_iNowStreamID = chunkData.streamId;
|
||||
handle_rtmpChunk(chunkData);
|
||||
if(chunkData.bodySize){
|
||||
handle_rtmpChunk(chunkData);
|
||||
}
|
||||
chunkData.strBuf.clear();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user