rtmpproto: Handle RTMP chunk size packets before the connect packet
authorStephan Soller <stephan.soller@helionweb.de>
Sat, 12 Apr 2014 23:06:22 +0000 (01:06 +0200)
committerMartin Storsjö <martin@martin.st>
Mon, 14 Apr 2014 08:09:26 +0000 (11:09 +0300)
commit4d40e073dcdef335215c124d340ea156bc4bdf13
treef20b3ace0d4fa6225d386c2ae0270e329a7d583e
parent6477139721f559b26eafd415e23e13ea2b0c27e1
rtmpproto: Handle RTMP chunk size packets before the connect packet

In all other cases where ff_rtmp_packet_read is used, the packet returned
is passed to rtmp_parse_result more or less immediately. In this single
case, the content of the packet was required to be a connect packet.

Some clients, e.g. Open Broadcaster Software, send a chunk size packet
before the connect packet. If the first packet is a chunk size packet,
handle it and read another one, requiring this to be a connect packet
instead.

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