Commit b7d1a505 by xiongziliang

提高rtmp协议兼容性

parent b90ebf65
...@@ -601,7 +601,9 @@ const char* RtmpProtocol::handle_rtmp(const char *data, uint64_t len) { ...@@ -601,7 +601,9 @@ const char* RtmpProtocol::handle_rtmp(const char *data, uint64_t len) {
//need more data //need more data
return ptr; return ptr;
} }
chunk_data.buffer.append(ptr + header_len + offset, more); if (more) {
chunk_data.buffer.append(ptr + header_len + offset, more);
}
ptr += header_len + offset + more; ptr += header_len + offset + more;
len -= header_len + offset + more; len -= header_len + offset + more;
if (chunk_data.buffer.size() == chunk_data.body_size) { if (chunk_data.buffer.size() == chunk_data.body_size) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论