rtmp: Support reading interleaved chunks.
authorJosh Allmann <joshua.allmann@gmail.com>
Tue, 17 Sep 2013 06:58:48 +0000 (23:58 -0700)
committerMartin Storsjö <martin@martin.st>
Tue, 17 Sep 2013 20:19:11 +0000 (23:19 +0300)
commit8583b14252deac71136f1dec231910abab0ba503
tree168eed6f41d80315d484ab8257a606b0eeb5daba
parentd4c2a3740fb95f952a87ba320d2bf31f126bdf68
rtmp: Support reading interleaved chunks.

A given packet won't always come in contiguously; sometimes
they may be broken up on chunk boundaries by packets of another
channel.

This support primarily involves tracking information about the
data that's been read, so the reader can pick up where it left
off for a given channel.

As a side effect, we no longer over-report the bytes read if
(toread = MIN(size, chunk_size)) == size

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