summaryrefslogtreecommitdiff
path: root/libavformat/aviobuf.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-02-21 20:02:20 +0100
committerRonald S. Bultje <rsbultje@gmail.com>2011-02-21 14:25:17 -0500
commit0ac8e2bf2bf3d636241bf2811018d9974687a63c (patch)
tree9746362b4f319490b2a718b7adfe6800c8290bdd /libavformat/aviobuf.c
parent77eb5504d3b3e1047900382350e0bc5e0bfb16b5 (diff)
avio: make put_nbyte internal.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r--libavformat/aviobuf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 275794deb9..eb48758c46 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -141,7 +141,7 @@ void avio_w8(AVIOContext *s, int b)
flush_buffer(s);
}
-void put_nbyte(AVIOContext *s, int b, int count)
+void ffio_fill(AVIOContext *s, int b, int count)
{
while (count > 0) {
int len = FFMIN(s->buf_end - s->buf_ptr, count);
@@ -352,6 +352,10 @@ void put_buffer(AVIOContext *s, const unsigned char *buf, int size)
{
avio_write(s, buf, size);
}
+void put_nbyte(AVIOContext *s, int b, int count)
+{
+ ffio_fill(s, b, count);
+}
#endif
int avio_put_str(AVIOContext *s, const char *str)