1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter: use the buffer_size_t typedef where required

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2021-03-06 14:16:45 -03:00
parent f7abb53cb4
commit 5d9af1670e
2 changed files with 5 additions and 4 deletions

View 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,

View 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,