[rtmpdump] r60 - rtmp.cpp
hyc
subversion at mplayerhq.hu
Mon Dec 14 01:37:51 CET 2009
Author: hyc
Date: Mon Dec 14 01:37:51 2009
New Revision: 60
Log:
Fix prev commit
Modified:
rtmp.cpp
Modified: rtmp.cpp
==============================================================================
--- rtmp.cpp Wed Dec 9 05:03:10 2009 (r59)
+++ rtmp.cpp Mon Dec 14 01:37:51 2009 (r60)
@@ -1829,13 +1829,15 @@ bool CRTMP::SendRTMP(RTMPPacket &packet)
nSize = packet.m_nBodySize;
char *buffer = packet.m_body;
- int nChunkSize = nSize > RTMP_DEFAULT_CHUNKSIZE ?
- RTMP_DEFAULT_CHUNKSIZE : nSize;
+ int nChunkSize = RTMP_DEFAULT_CHUNKSIZE;
while (nSize)
{
int wrote;
+ if (nSize < nChunkSize)
+ nChunkSize = nSize;
+
if (header) {
wrote=WriteN(header, nChunkSize+hSize);
header = NULL;
More information about the rtmpdump
mailing list