summaryrefslogtreecommitdiff
path: root/libavformat/avio_internal.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-02-21 19:28:16 +0100
committerRonald S. Bultje <rsbultje@gmail.com>2011-02-21 13:40:28 -0500
commitb3db9ceef13037f2b6963a84b7abf8871a1e0f8a (patch)
treee739747b91d56073ec1c4a212c2630973ac6e820 /libavformat/avio_internal.h
parentb7effd4e8338f6ed5bda630ad7ed0809bf458648 (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.h8
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