aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/nvdec.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-03-06 13:29:37 -0300
committerJames Almer <jamrial@gmail.com>2021-03-10 20:26:36 -0300
commitd8a18c8fc2907004448cb45e704dc82bcd2df528 (patch)
tree224b56fc77577dc547649eb0acc5fd4a6ac12650 /libavcodec/nvdec.c
parent42e68fe01587b541c9ced34906b09e3c9c894e74 (diff)
downloadffmpeg-d8a18c8fc2907004448cb45e704dc82bcd2df528.tar.gz
avcodec: use the buffer_size_t typedef where required
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/nvdec.c')
-rw-r--r--libavcodec/nvdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/nvdec.c b/libavcodec/nvdec.c
index 23c84d9acf..d6b6608866 100644
--- a/libavcodec/nvdec.c
+++ b/libavcodec/nvdec.c
@@ -242,7 +242,7 @@ fail:
return ret;
}
-static AVBufferRef *nvdec_decoder_frame_alloc(void *opaque, int size)
+static AVBufferRef *nvdec_decoder_frame_alloc(void *opaque, buffer_size_t size)
{
NVDECFramePool *pool = opaque;
AVBufferRef *ret;
@@ -283,7 +283,7 @@ static void nvdec_free_dummy(struct AVHWFramesContext *ctx)
av_buffer_pool_uninit(&ctx->pool);
}
-static AVBufferRef *nvdec_alloc_dummy(int size)
+static AVBufferRef *nvdec_alloc_dummy(buffer_size_t size)
{
return av_buffer_create(NULL, 0, NULL, NULL, 0);
}