mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 02:20:07 +01:00
avio: make put_nbyte internal.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
This commit is contained in:
committed by
Ronald S. Bultje
parent
77eb5504d3
commit
0ac8e2bf2b
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user