diff options
author | wm4 <nfxjfg@googlemail.com> | 2017-08-17 15:01:44 +0200 |
---|---|---|
committer | wm4 <nfxjfg@googlemail.com> | 2017-09-01 17:56:33 +0200 |
commit | 5d76674756806e3b458e484788775fcee34aac2a (patch) | |
tree | 8565294bfa35d9205266e12d55fadf86926f0de4 /libavformat/avio_internal.h | |
parent | 877076ffa17bcf56badedc036cdc1adcd9f38b24 (diff) | |
download | ffmpeg-5d76674756806e3b458e484788775fcee34aac2a.tar.gz |
lavf: make avio_read_partial() public
Main use-case is proxying avio through a foreign I/O layer and a custom
AVIO context, without losing latency and performance characteristics.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Merged from Libav commit 173b56218f39c64.
Diffstat (limited to 'libavformat/avio_internal.h')
-rw-r--r-- | libavformat/avio_internal.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libavformat/avio_internal.h b/libavformat/avio_internal.h index fdb323c8f1..c01835df96 100644 --- a/libavformat/avio_internal.h +++ b/libavformat/avio_internal.h @@ -53,14 +53,6 @@ int ffio_init_context(AVIOContext *s, */ int ffio_read_indirect(AVIOContext *s, unsigned char *buf, int size, const unsigned char **data); -/** - * Read size bytes from AVIOContext into buf. - * This reads at most 1 packet. If that is not enough fewer bytes will be - * returned. - * @return number of bytes read or AVERROR - */ -int ffio_read_partial(AVIOContext *s, unsigned char *buf, int size); - void ffio_fill(AVIOContext *s, int b, int count); static av_always_inline void ffio_wfourcc(AVIOContext *pb, const uint8_t *s) |