RTMP: Return from rtmp_read as soon as some data is available
authorMartin Storsjö <martin@martin.st>
Fri, 18 Jun 2010 12:02:51 +0000 (12:02 +0000)
committerMartin Storsjö <martin@martin.st>
Fri, 18 Jun 2010 12:02:51 +0000 (12:02 +0000)
commite8ccf245276216e8d94aa1dc802053492254d22a
tree69f4dd9aed748263f637bf157ccecf547f17539f
parenta80af87eea88a674375637ccfb54b41526f774a4
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.

Originally committed as revision 23642 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/rtmpproto.c