rtmpproto: Readjust the end of the flv buffer if handle_metadata exited early
authorMartin Storsjö <martin@martin.st>
Thu, 3 Oct 2013 11:44:38 +0000 (13:44 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 4 Oct 2013 06:25:08 +0000 (09:25 +0300)
commit8921e32f730c191543b84e61338bc9d549aa05a3
tree01850f017a5251854e88b8fdc49d800ba5504194
parent24fee95321c1463360ba7042d026dae021854360
rtmpproto: Readjust the end of the flv buffer if handle_metadata exited early

If the embedded flv packets were incomplete and we aborted the
copying loop early, make sure the flv buffer is trimmed to
only contain full packets.

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