avformat/aviobuf: Extend ffio_fill to 64bits

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
pull/369/head
Andreas Rheinhardt 3 years ago
parent 874f03fae7
commit a46e78d5b7
  1. 2
      libavformat/avio_internal.h
  2. 2
      libavformat/aviobuf.c

@ -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); 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) static av_always_inline void ffio_wfourcc(AVIOContext *pb, const uint8_t *s)
{ {

@ -201,7 +201,7 @@ void avio_w8(AVIOContext *s, int b)
flush_buffer(s); 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) { while (count > 0) {
int len = FFMIN(s->buf_end - s->buf_ptr, count); int len = FFMIN(s->buf_end - s->buf_ptr, count);

Loading…
Cancel
Save