]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/nvdec.c
avcodec: use the buffer_size_t typedef where required
[ffmpeg] / libavcodec / nvdec.c
index 23c84d9acf44ac57623cbe762505b136df3bf6ae..d6b6608866f4b501708f9df510f372b7588f98e7 100644 (file)
@@ -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);
 }