avformat/aviobuf: Extend ffio_fill to 64bits

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-09-23 00:55:44 +02:00
parent 874f03fae7
commit a46e78d5b7
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ void ffio_init_context(FFIOContext *s,
*/
int ffio_read_indirect(AVIOContext *s, unsigned char *buf, int size, const unsigned char **data);
void ffio_fill(AVIOContext *s, int b, int count);
void ffio_fill(AVIOContext *s, int b, int64_t count);
static av_always_inline void ffio_wfourcc(AVIOContext *pb, const uint8_t *s)
{

View File

@ -201,7 +201,7 @@ void avio_w8(AVIOContext *s, int b)
flush_buffer(s);
}
void ffio_fill(AVIOContext *s, int b, int count)
void ffio_fill(AVIOContext *s, int b, int64_t count)
{
while (count > 0) {
int len = FFMIN(s->buf_end - s->buf_ptr, count);