avio: make put_nbyte internal.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
This commit is contained in:
Anton Khirnov
2011-02-21 20:02:20 +01:00
committed by Ronald S. Bultje
parent 77eb5504d3
commit 0ac8e2bf2b
4 changed files with 9 additions and 3 deletions

View File

@@ -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)