[rtmpdump] r484 - trunk/librtmp/rtmp.c

trueice trueice at gmail.com
Tue May 25 08:56:49 CEST 2010


Hi,

This patch will cause ffmpeg with librtmp fail or segmentation fault.
example command line:
$ ffmpeg -i rtmp://server/live/livestream -acodec copy -vcodec copy -y
test.flv

On Tue, May 25, 2010 at 3:43 AM, hyc <subversion at mplayerhq.hu> wrote:

> 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;
> _______________________________________________
> rtmpdump mailing list
> rtmpdump at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/rtmpdump
>



-- 
------------------------------------------------------------
Yours trueice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mplayerhq.hu/pipermail/rtmpdump/attachments/20100525/2b992b14/attachment.htm>


More information about the rtmpdump mailing list