diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-02-21 21:28:16 +0300 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-02-21 21:40:28 +0300 |
commit | b3db9ceef13037f2b6963a84b7abf8871a1e0f8a (patch) | |
tree | e739747b91d56073ec1c4a212c2630973ac6e820 /libavformat/avio_internal.h | |
parent | b7effd4e8338f6ed5bda630ad7ed0809bf458648 (diff) |
avio: make get_partial_buffer internal.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/avio_internal.h')
-rw-r--r-- | libavformat/avio_internal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavformat/avio_internal.h b/libavformat/avio_internal.h index 1cebcd72c8..16715377b5 100644 --- a/libavformat/avio_internal.h +++ b/libavformat/avio_internal.h @@ -32,4 +32,12 @@ int ffio_init_context(AVIOContext *s, int64_t (*seek)(void *opaque, int64_t offset, int whence)); +/** + * 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); + #endif // AVFORMAT_AVIO_INTERNAL_H |