1
0
Fork 0
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:
winlin 2013-10-20 21:58:03 +08:00
parent 1beee1e970
commit 2e590e18f4

View file

@ -404,7 +404,7 @@ int SrsProtocol::send_message(SrsMessage* msg)
// sendout header and payload by writev. // sendout header and payload by writev.
// decrease the sys invoke count to get higher performance. // 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) { if (payload_size > out_chunk_size) {
payload_size = out_chunk_size; payload_size = out_chunk_size;
} }