mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avutil: use the buffer_size_t typedef where required
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
5d9af1670e
commit
e36eb94048
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user