[rtmpdump] r484 - trunk/librtmp/rtmp.c
hyc
subversion at mplayerhq.hu
Mon May 24 21:43:49 CEST 2010
Author: hyc
Date: Mon May 24 21:43:48 2010
New Revision: 484
Log:
Just return 1 packet's worth of data at a time from RTMP_Read()
Modified:
trunk/librtmp/rtmp.c
Modified: trunk/librtmp/rtmp.c
==============================================================================
--- trunk/librtmp/rtmp.c Mon May 24 15:29:05 2010 (r483)
+++ trunk/librtmp/rtmp.c Mon May 24 21:43:48 2010 (r484)
@@ -4162,7 +4162,7 @@ fail:
size -= nRead;
}
- while (size > 0 && (nRead = Read_1_Packet(r, buf, size)) >= 0)
+ if (size > 0 && (nRead = Read_1_Packet(r, buf, size)) >= 0)
{
buf += nRead;
total += nRead;
More information about the rtmpdump
mailing list