diff mbox series

[FFmpeg-devel,24/27] avformat/aviobuf: Extend ffio_fill to 64bits

Message ID AM7PR03MB666011027C31C8CEFD88E5238FA39@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit a46e78d5b7177232406d6afe661fb532d3a2b7dd
Headers show
Series [FFmpeg-devel,01/27] avformat/astenc: Simplify writing padding | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 23, 2021, 3:28 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavformat/avio_internal.h | 2 +-
 libavformat/aviobuf.c       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Paul B Mahol Sept. 23, 2021, 6:38 p.m. UTC | #1
lgtm
diff mbox series

Patch

diff --git a/libavformat/avio_internal.h b/libavformat/avio_internal.h
index 8b9e048f73..11060e9ff9 100644
--- a/libavformat/avio_internal.h
+++ b/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)
 {
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 28db2c7dbd..d79e41ca77 100644
--- a/libavformat/aviobuf.c
+++ b/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);