<div>Hi,</div><div><br></div>This patch will cause ffmpeg with librtmp fail or segmentation fault.<div>example command line: <br><div>$ ffmpeg -i rtmp://server/live/livestream -acodec copy -vcodec copy -y test.flv<br><br><div class="gmail_quote">
On Tue, May 25, 2010 at 3:43 AM, hyc <span dir="ltr"><<a href="mailto:subversion@mplayerhq.hu">subversion@mplayerhq.hu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Author: hyc<br>
Date: Mon May 24 21:43:48 2010<br>
New Revision: 484<br>
<br>
Log:<br>
Just return 1 packet's worth of data at a time from RTMP_Read()<br>
<br>
Modified:<br>
trunk/librtmp/rtmp.c<br>
<br>
Modified: trunk/librtmp/rtmp.c<br>
==============================================================================<br>
--- trunk/librtmp/rtmp.c Mon May 24 15:29:05 2010 (r483)<br>
+++ trunk/librtmp/rtmp.c Mon May 24 21:43:48 2010 (r484)<br>
@@ -4162,7 +4162,7 @@ fail:<br>
size -= nRead;<br>
}<br>
<br>
- while (size > 0 && (nRead = Read_1_Packet(r, buf, size)) >= 0)<br>
+ if (size > 0 && (nRead = Read_1_Packet(r, buf, size)) >= 0)<br>
{<br>
buf += nRead;<br>
total += nRead;<br>
_______________________________________________<br>
rtmpdump mailing list<br>
<a 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>
</blockquote></div><br><br clear="all"><br>-- <br>------------------------------------------------------------<br>Yours trueice
</div></div>