History

avutil: use the buffer_size_t typedef where required

James Almer committed 5 years ago

Commit e36eb941 parent 5d9af168 files · +8 −8Browse files

Unified · Split

8 files
  1. libavutil/hwcontext_cuda.c +1 −1
  2. libavutil/hwcontext_d3d11va.c +1 −1
  3. libavutil/hwcontext_dxva2.c +1 −1
  4. libavutil/hwcontext_opencl.c +1 −1
  5. libavutil/hwcontext_qsv.c +1 −1
  6. libavutil/hwcontext_vaapi.c +1 −1
  7. libavutil/hwcontext_vdpau.c +1 −1
  8. libavutil/hwcontext_vulkan.c +1 −1
libavutil/hwcontext_cuda.c+1−1
@@ -93,7 +93,7 @@ static void cuda_buffer_free(void *opaque, uint8_t *data) · 92 unmodified lines
9393 CHECK_CU(cu->cuCtxPopCurrent(&dummy));
9494 }
9595
96−static AVBufferRef *cuda_pool_alloc(void *opaque, int size)
96+static AVBufferRef *cuda_pool_alloc(void *opaque, buffer_size_t size)
9797 {
9898 AVHWFramesContext *ctx = opaque;
9999 AVHWDeviceContext *device_ctx = ctx->device_ctx;
libavutil/hwcontext_d3d11va.c+1−1
@@ -202,7 +202,7 @@ static AVBufferRef *d3d11va_alloc_single(AVHWFramesContext *ctx) · 201 unmodified lines
202202 return wrap_texture_buf(tex, 0);
203203 }
204204
205−static AVBufferRef *d3d11va_pool_alloc(void *opaque, int size)
205+static AVBufferRef *d3d11va_pool_alloc(void *opaque, buffer_size_t size)
206206 {
207207 AVHWFramesContext *ctx = (AVHWFramesContext*)opaque;
208208 D3D11VAFramesContext *s = ctx->internal->priv;
libavutil/hwcontext_dxva2.c+1−1
@@ -124,7 +124,7 @@ static void dxva2_pool_release_dummy(void *opaque, uint8_t *data) · 123 unmodified lines
124124 // released in dxva2_frames_uninit()
125125 }
126126
127−static AVBufferRef *dxva2_pool_alloc(void *opaque, int size)
127+static AVBufferRef *dxva2_pool_alloc(void *opaque, buffer_size_t size)
128128 {
129129 AVHWFramesContext *ctx = (AVHWFramesContext*)opaque;
130130 DXVA2FramesContext *s = ctx->internal->priv;
libavutil/hwcontext_opencl.c+1−1
@@ -1617,7 +1617,7 @@ static void opencl_pool_free(void *opaque, uint8_t *data) · 1616 unmodified lines
16171617 av_free(desc);
16181618 }
16191619
1620−static AVBufferRef *opencl_pool_alloc(void *opaque, int size)
1620+static AVBufferRef *opencl_pool_alloc(void *opaque, buffer_size_t size)
16211621 {
16221622 AVHWFramesContext *hwfc = opaque;
16231623 AVOpenCLDeviceContext *hwctx = hwfc->device_ctx->hwctx;
libavutil/hwcontext_qsv.c+1−1
@@ -194,7 +194,7 @@ static void qsv_pool_release_dummy(void *opaque, uint8_t *data) · 193 unmodified lines
194194 {
195195 }
196196
197−static AVBufferRef *qsv_pool_alloc(void *opaque, int size)
197+static AVBufferRef *qsv_pool_alloc(void *opaque, buffer_size_t size)
198198 {
199199 AVHWFramesContext *ctx = (AVHWFramesContext*)opaque;
200200 QSVFramesContext *s = ctx->internal->priv;
libavutil/hwcontext_vaapi.c+1−1
@@ -464,7 +464,7 @@ static void vaapi_buffer_free(void *opaque, uint8_t *data) · 463 unmodified lines
464464 }
465465 }
466466
467−static AVBufferRef *vaapi_pool_alloc(void *opaque, int size)
467+static AVBufferRef *vaapi_pool_alloc(void *opaque, buffer_size_t size)
468468 {
469469 AVHWFramesContext *hwfc = opaque;
470470 VAAPIFramesContext *ctx = hwfc->internal->priv;
libavutil/hwcontext_vdpau.c+1−1
@@ -225,7 +225,7 @@ static void vdpau_buffer_free(void *opaque, uint8_t *data) · 224 unmodified lines
225225 device_priv->surf_destroy(surf);
226226 }
227227
228−static AVBufferRef *vdpau_pool_alloc(void *opaque, int size)
228+static AVBufferRef *vdpau_pool_alloc(void *opaque, buffer_size_t size)
229229 {
230230 AVHWFramesContext *ctx = opaque;
231231 VDPAUFramesContext *priv = ctx->internal->priv;
libavutil/hwcontext_vulkan.c+1−1
@@ -1693,7 +1693,7 @@ static void try_export_flags(AVHWFramesContext *hwfc, · 1692 unmodified lines
16931693 }
16941694 }
16951695
1696−static AVBufferRef *vulkan_pool_alloc(void *opaque, int size)
1696+static AVBufferRef *vulkan_pool_alloc(void *opaque, buffer_size_t size)
16971697 {
16981698 int err;
16991699 AVVkFrame *f;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t