提高rtmp协议兼容性

This commit is contained in:
xiongziliang 2020-12-13 09:51:08 +08:00
parent b90ebf6511
commit b7d1a5059a

View File

@ -601,7 +601,9 @@ const char* RtmpProtocol::handle_rtmp(const char *data, uint64_t len) {
//need more data
return ptr;
}
if (more) {
chunk_data.buffer.append(ptr + header_len + offset, more);
}
ptr += header_len + offset + more;
len -= header_len + offset + more;
if (chunk_data.buffer.size() == chunk_data.body_size) {