解决有些rtmp流由于bodySize为0无法播放的问题
This commit is contained in:
parent
c2d5f5abed
commit
afb90f68ed
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue