rtmp: Handle FLV packets written in more than one write call
authorChiranjeevi Melam <cmelam@rgbnetworks.com>
Sun, 18 Sep 2011 03:39:53 +0000 (05:39 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 20 Sep 2011 13:23:46 +0000 (16:23 +0300)
commita14c784210198fe830391a59897d4dc62f13ab84
tree150621f00238775b42569b461e8f24834e3b2ee7
parent4cc7732386eb36661ed22d1200339b38a5fa60bc
rtmp: Handle FLV packets written in more than one write call

If the FLV packet is larger than the AVIO buffer, a partial
FLV packet will be flushed to the RTMP protocol.

This commit handles the most common cases of FLV packets
being written in more than one call.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtmpproto.c