Browse Source

avutil: use the buffer_size_t typedef where required

Signed-off-by: James Almer <jamrial@gmail.com>
tags/n4.4
James Almer 5 years ago
parent
commit
e36eb94048
8 changed files with 8 additions and 8 deletions
  1. +1
    -1
      libavutil/hwcontext_cuda.c
  2. +1
    -1
      libavutil/hwcontext_d3d11va.c
  3. +1
    -1
      libavutil/hwcontext_dxva2.c
  4. +1
    -1
      libavutil/hwcontext_opencl.c
  5. +1
    -1
      libavutil/hwcontext_qsv.c
  6. +1
    -1
      libavutil/hwcontext_vaapi.c
  7. +1
    -1
      libavutil/hwcontext_vdpau.c
  8. +1
    -1
      libavutil/hwcontext_vulkan.c

+ 1
- 1
libavutil/hwcontext_cuda.c 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;


+ 1
- 1
libavutil/hwcontext_d3d11va.c 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;


+ 1
- 1
libavutil/hwcontext_dxva2.c 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;


+ 1
- 1
libavutil/hwcontext_opencl.c 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;


+ 1
- 1
libavutil/hwcontext_qsv.c 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;


+ 1
- 1
libavutil/hwcontext_vaapi.c 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;


+ 1
- 1
libavutil/hwcontext_vdpau.c 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;


+ 1
- 1
libavutil/hwcontext_vulkan.c 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;


Loading…
Cancel
Save