mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-05 10:58:11 +08:00
解决有些rtmp流由于bodySize为0无法播放的问题
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user