mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix bug of send rtmp message
This commit is contained in:
parent
1beee1e970
commit
2e590e18f4
1 changed files with 1 additions and 1 deletions
|
@ -404,7 +404,7 @@ int SrsProtocol::send_message(SrsMessage* msg)
|
|||
|
||||
// sendout header and payload by writev.
|
||||
// decrease the sys invoke count to get higher performance.
|
||||
int payload_size = msg->size - ((char*)msg->payload - p);
|
||||
int payload_size = msg->size - (p - (char*)msg->payload);
|
||||
if (payload_size > out_chunk_size) {
|
||||
payload_size = out_chunk_size;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue