]> git.sesse.net Git - ffmpeg/commitdiff
avfilter: use the buffer_size_t typedef where required
authorJames Almer <jamrial@gmail.com>
Sat, 6 Mar 2021 17:16:45 +0000 (14:16 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 10 Mar 2021 23:26:36 +0000 (20:26 -0300)
Signed-off-by: James Almer <jamrial@gmail.com>
libavfilter/framepool.c
libavfilter/framepool.h

index 3b178cebb81736535385b17620c017b1e79dc2f9..dab8891524b2d31d41632883c83796a6b893367a 100644 (file)
@@ -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,
index e5560e4c6e8b8b09be5ab8b74d838556e7c47b17..28857a4a162fbc8c43c0854ea7596690ec315211 100644 (file)
@@ -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,