]> git.sesse.net Git - ffmpeg/commitdiff
avutil: use the buffer_size_t typedef where required
authorJames Almer <jamrial@gmail.com>
Sat, 6 Mar 2021 16:58:26 +0000 (13:58 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 10 Mar 2021 23:26:37 +0000 (20:26 -0300)
Signed-off-by: James Almer <jamrial@gmail.com>
libavutil/hwcontext_cuda.c
libavutil/hwcontext_d3d11va.c
libavutil/hwcontext_dxva2.c
libavutil/hwcontext_opencl.c
libavutil/hwcontext_qsv.c
libavutil/hwcontext_vaapi.c
libavutil/hwcontext_vdpau.c
libavutil/hwcontext_vulkan.c

index 58ffc81378730f722b7f55b0aa514e074e66cd01..3773cd9eb805cde71a8075f93777cab760c4555c 100644 (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;
index c8ae58f908a0b3a4a5671182c28e3d913b5f6a0f..2a3549ebd8036ad44200324cbbd394f339e2c734 100644 (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;
index 64366cea89dd29477de0f135841cae5f1b04ec93..33b3dc80ff6bba196a10ddaa2ee00c9f84a6975f 100644 (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;
index cd8638abbb9cecf0253b2d70ec2aef078d78b173..ee814602b28caf540bb2d586885c6fb0e980f4a4 100644 (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;
index 35a944f8f8a2b39e399d585fd14e75c28825ae2b..30b0d81f84a9ff8ed118d9fa13710143f9cdaf18 100644 (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;
index 2227d6ed6981c6d6cdc5a6b6e5691a655998d767..4b81bd1f67b36ca3243274f1b2d11ecbaae516eb 100644 (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;
index 8f014eaba7339dd407e73f5d7913f2866d60e98b..a6fd7126f377a8ff3deadde9d6b8842e3d8b981c 100644 (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;
index e835ffe90ec67949b784532c212b94ec2ab4b385..2e3faaaa1ae1cc2b946f966e4dc60ce5b47772f2 100644 (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;