<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>instead of deleting the line we should fix it. due to lack of brackets around the expression, compiler was interpreting it in the <br></span></div><div><span>wrong way. following patch will fix it.<br></span></div><div><br></div><div>diff --git librtmp/rtmp.c librtmp/rtmp.c<br>index 4b17a49..704f0dc 100644<br>--- librtmp/rtmp.c<br>+++ librtmp/rtmp.c<br>@@ -1337,7 +1361,7 @@ ReadN(RTMP *r, char *buffer, int n)<br>       nBytes = nRead;<br>       r->m_nBytesIn += nRead;<br>       if (r->m_bSendCounter<br>-          && r->m_nBytesIn > r->m_nBytesInSent + r->m_nClientBW / 2)<br>+          && r->m_nBytesIn > (r->m_nBytesInSent +
 r->m_nClientBW / 10))<br>         if (!SendBytesReceived(r))<br>             return FALSE;<br>     }</div><div><br></div><div>i increased the value to 10 so it will send the bytes received report after each 250 KB block of data is received.</div><div>it's useful for slower connections otherwise server may drop connection when bytes received report isn't sent too frequently.<br></div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> compn <tempn@twmi.rr.com><br><b><span style="font-weight: bold;">To:</span></b> rtmpdump@mplayerhq.hu<br><b><span style="font-weight: bold;">Sent:</span></b> Sunday, 6 November 2011 6:14 PM<br><b><span
 style="font-weight: bold;">Subject:</span></b> Re: [rtmpdump] rutube.ru dumping stopped working: ERROR: RTMP_ReadPacket, failed to read RTMP packet header<br></font><br>On Sun, 06 Nov 2011 04:13:54 -0500, <a ymailto="mailto:al_9x@yahoo.com" href="mailto:al_9x@yahoo.com">al_9x@yahoo.com</a> wrote:<br>>On 11/6/2011 1:42 AM, chapun67 wrote:<br>>> in a directory in the file librtmp rtmp.c, line 1331 (function in <br>>> ReadN), delete: r-> m_nBytesInSent eventually got: if (r-> <br>>> m_bSendCounter & & r-> m_nBytesIn> r-> m_nClientBW / 2)<br>><br>>Worked, thanks.<br>><br>>Can someone review (and accept) this?<br><br>could you submit a patch against git? librtmp/rtmp.c:1331 is different.<br><br>-compn<br>_______________________________________________<br>rtmpdump mailing list<br><a ymailto="mailto:rtmpdump@mplayerhq.hu" href="mailto:rtmpdump@mplayerhq.hu">rtmpdump@mplayerhq.hu</a><br><a
 href="https://lists.mplayerhq.hu/mailman/listinfo/rtmpdump" target="_blank">https://lists.mplayerhq.hu/mailman/listinfo/rtmpdump</a><br><br><br></div></div></div></body></html>