Browse Source

avformat/aviobuf: Extend ffio_fill to 64bits

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
master
Andreas Rheinhardt 1 month ago
parent
commit
a46e78d5b7
  1. 2
      libavformat/avio_internal.h
  2. 2
      libavformat/aviobuf.c

2
libavformat/avio_internal.h

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

2
libavformat/aviobuf.c

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

Loading…
Cancel
Save