解决有些rtmp流由于bodySize为0无法播放的问题

This commit is contained in:
xiongziliang 2017-05-17 17:21:16 +08:00
parent c2d5f5abed
commit afb90f68ed

View File

@ -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");
} }