avio: Add an internal function for reading without copying
authorBen Avison <bavison@riscosopen.org>
Wed, 31 Jul 2013 22:46:08 +0000 (23:46 +0100)
committerMartin Storsjö <martin@martin.st>
Mon, 5 Aug 2013 12:14:25 +0000 (15:14 +0300)
commitdaf1e0d3de03bd424016e2a7520e4e94ece5c0ac
tree3dd514f8ccace141868de817c2cb48ca985a95cc
parent22a154e4363b351dd9f321003de01dffebd2fa18
avio: Add an internal function for reading without copying

As long as there is enough contiguous data in the avio buffer,
just return a pointer to it instead of copying it to the caller
provided buffer.

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