diff mbox series

[FFmpeg-devel,8/9] avfilter: use the buffer_size_t typedef where required

Message ID 20210306194243.14931-8-jamrial@gmail.com
State Accepted
Commit 5d9af1670ef2be16722f2ce8c9d8365bfbcaca23
Headers show
Series [FFmpeg-devel,1/9,v3] avutil/buffer: change public function and struct size parameter types to size_t | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

James Almer March 6, 2021, 7:42 p.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavfilter/framepool.c | 4 ++--
 libavfilter/framepool.h | 5 +++--
 2 files changed, 5 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/libavfilter/framepool.c b/libavfilter/framepool.c
index 3b178cebb8..dab8891524 100644
--- a/libavfilter/framepool.c
+++ b/libavfilter/framepool.c
@@ -48,7 +48,7 @@  struct FFFramePool {
 
 };
 
-FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(int size),
+FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(buffer_size_t size),
                                       int width,
                                       int height,
                                       enum AVPixelFormat format,
@@ -116,7 +116,7 @@  fail:
     return NULL;
 }
 
-FFFramePool *ff_frame_pool_audio_init(AVBufferRef* (*alloc)(int size),
+FFFramePool *ff_frame_pool_audio_init(AVBufferRef* (*alloc)(buffer_size_t size),
                                       int channels,
                                       int nb_samples,
                                       enum AVSampleFormat format,
diff --git a/libavfilter/framepool.h b/libavfilter/framepool.h
index e5560e4c6e..28857a4a16 100644
--- a/libavfilter/framepool.h
+++ b/libavfilter/framepool.h
@@ -23,6 +23,7 @@ 
 
 #include "libavutil/buffer.h"
 #include "libavutil/frame.h"
+#include "libavutil/internal.h"
 
 /**
  * Frame pool. This structure is opaque and not meant to be accessed
@@ -43,7 +44,7 @@  typedef struct FFFramePool FFFramePool;
  * @param align buffers alignement of each frame in this pool
  * @return newly created video frame pool on success, NULL on error.
  */
-FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(int size),
+FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(buffer_size_t size),
                                       int width,
                                       int height,
                                       enum AVPixelFormat format,
@@ -61,7 +62,7 @@  FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(int size),
  * @param align buffers alignement of each frame in this pool
  * @return newly created audio frame pool on success, NULL on error.
  */
-FFFramePool *ff_frame_pool_audio_init(AVBufferRef* (*alloc)(int size),
+FFFramePool *ff_frame_pool_audio_init(AVBufferRef* (*alloc)(buffer_size_t size),
                                       int channels,
                                       int samples,
                                       enum AVSampleFormat format,