[FFmpeg-cvslog] r23642 - trunk/libavformat/rtmpproto.c

mstorsjo subversion
Fri Jun 18 14:02:51 CEST 2010


Author: mstorsjo
Date: Fri Jun 18 14:02:51 2010
New Revision: 23642

Log:
RTMP: Return from rtmp_read as soon as some data is available

Earlier, the function only returned when the enough data to fill the
requested buffer was available. This lead to high latency when receiving
low-bandwidth streams.

Modified:
   trunk/libavformat/rtmpproto.c

Modified: trunk/libavformat/rtmpproto.c
==============================================================================
--- trunk/libavformat/rtmpproto.c	Fri Jun 18 09:54:45 2010	(r23641)
+++ trunk/libavformat/rtmpproto.c	Fri Jun 18 14:02:51 2010	(r23642)
@@ -915,6 +915,7 @@ static int rtmp_read(URLContext *s, uint
             buf  += data_left;
             size -= data_left;
             rt->flv_off = rt->flv_size;
+            return data_left;
         }
         if ((ret = get_packet(s, 0)) < 0)
            return ret;



More information about the ffmpeg-cvslog mailing list