mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 03:10:04 +08:00
解决有些rtmp流由于bodySize为0无法播放的问题
This commit is contained in:
parent
c2d5f5abed
commit
afb90f68ed
@ -509,7 +509,7 @@ void RtmpProtocol::handle_rtmp() {
|
|||||||
iOffset += 4;
|
iOffset += 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (chunkData.bodySize == 0 || chunkData.bodySize < chunkData.strBuf.size()) {
|
if (chunkData.bodySize < chunkData.strBuf.size()) {
|
||||||
throw std::runtime_error("非法的bodySize");
|
throw std::runtime_error("非法的bodySize");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user