avutil: 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 13:58:26 -03:00
parent 5d9af1670e
commit e36eb94048
8 changed files with 8 additions and 8 deletions

View File

@ -93,7 +93,7 @@ static void cuda_buffer_free(void *opaque, uint8_t *data)
CHECK_CU(cu->cuCtxPopCurrent(&dummy));
}
static AVBufferRef *cuda_pool_alloc(void *opaque, int size)
static AVBufferRef *cuda_pool_alloc(void *opaque, buffer_size_t size)
{
AVHWFramesContext *ctx = opaque;
AVHWDeviceContext *device_ctx = ctx->device_ctx;

View File

@ -202,7 +202,7 @@ static AVBufferRef *d3d11va_alloc_single(AVHWFramesContext *ctx)
return wrap_texture_buf(tex, 0);
}
static AVBufferRef *d3d11va_pool_alloc(void *opaque, int size)
static AVBufferRef *d3d11va_pool_alloc(void *opaque, buffer_size_t size)
{
AVHWFramesContext *ctx = (AVHWFramesContext*)opaque;
D3D11VAFramesContext *s = ctx->internal->priv;

View File

@ -124,7 +124,7 @@ static void dxva2_pool_release_dummy(void *opaque, uint8_t *data)
// released in dxva2_frames_uninit()
}
static AVBufferRef *dxva2_pool_alloc(void *opaque, int size)
static AVBufferRef *dxva2_pool_alloc(void *opaque, buffer_size_t size)
{
AVHWFramesContext *ctx = (AVHWFramesContext*)opaque;
DXVA2FramesContext *s = ctx->internal->priv;

View File

@ -1617,7 +1617,7 @@ static void opencl_pool_free(void *opaque, uint8_t *data)
av_free(desc);
}
static AVBufferRef *opencl_pool_alloc(void *opaque, int size)
static AVBufferRef *opencl_pool_alloc(void *opaque, buffer_size_t size)
{
AVHWFramesContext *hwfc = opaque;
AVOpenCLDeviceContext *hwctx = hwfc->device_ctx->hwctx;

View File

@ -194,7 +194,7 @@ static void qsv_pool_release_dummy(void *opaque, uint8_t *data)
{
}
static AVBufferRef *qsv_pool_alloc(void *opaque, int size)
static AVBufferRef *qsv_pool_alloc(void *opaque, buffer_size_t size)
{
AVHWFramesContext *ctx = (AVHWFramesContext*)opaque;
QSVFramesContext *s = ctx->internal->priv;

View File

@ -464,7 +464,7 @@ static void vaapi_buffer_free(void *opaque, uint8_t *data)
}
}
static AVBufferRef *vaapi_pool_alloc(void *opaque, int size)
static AVBufferRef *vaapi_pool_alloc(void *opaque, buffer_size_t size)
{
AVHWFramesContext *hwfc = opaque;
VAAPIFramesContext *ctx = hwfc->internal->priv;

View File

@ -225,7 +225,7 @@ static void vdpau_buffer_free(void *opaque, uint8_t *data)
device_priv->surf_destroy(surf);
}
static AVBufferRef *vdpau_pool_alloc(void *opaque, int size)
static AVBufferRef *vdpau_pool_alloc(void *opaque, buffer_size_t size)
{
AVHWFramesContext *ctx = opaque;
VDPAUFramesContext *priv = ctx->internal->priv;

View File

@ -1693,7 +1693,7 @@ static void try_export_flags(AVHWFramesContext *hwfc,
}
}
static AVBufferRef *vulkan_pool_alloc(void *opaque, int size)
static AVBufferRef *vulkan_pool_alloc(void *opaque, buffer_size_t size)
{
int err;
AVVkFrame *f;