diff options
author | Martin Storsjö <martin@martin.st> | 2010-06-18 12:02:51 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-06-18 12:02:51 +0000 |
commit | e8ccf245276216e8d94aa1dc802053492254d22a (patch) | |
tree | 69f4dd9aed748263f637bf157ccecf547f17539f /libavformat | |
parent | a80af87eea88a674375637ccfb54b41526f774a4 (diff) | |
download | ffmpeg-e8ccf245276216e8d94aa1dc802053492254d22a.tar.gz |
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
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtmpproto.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 1f572320fa..f76cf0f495 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -915,6 +915,7 @@ static int rtmp_read(URLContext *s, uint8_t *buf, int size) buf += data_left; size -= data_left; rt->flv_off = rt->flv_size; + return data_left; } if ((ret = get_packet(s, 0)) < 0) return ret; |