aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/vulkan.c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2024-07-24 20:19:15 +0200
committerLynne <dev@lynne.ee>2024-08-11 05:13:13 +0200
commit8eac11105b0addc6f9ff53d4f082171db459e172 (patch)
tree20ad75a285805f91425e0f82beb159eedd45648c /libavutil/vulkan.c
parent55adcb4fc516eb3f14a24a497c81dd1e39e42777 (diff)
downloadffmpeg-8eac11105b0addc6f9ff53d4f082171db459e172.tar.gz
vulkan: use allocator callback for buffer creation
This would've let to a segfault if custom allocators were used.
Diffstat (limited to 'libavutil/vulkan.c')
-rw-r--r--libavutil/vulkan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c
index df7758cc1e..7b45e43a89 100644
--- a/libavutil/vulkan.c
+++ b/libavutil/vulkan.c
@@ -855,7 +855,7 @@ int ff_vk_create_buf(FFVulkanContext *s, FFVkBuffer *buf, size_t size,
.pNext = &ded_req,
};
- ret = vk->CreateBuffer(s->hwctx->act_dev, &buf_spawn, NULL, &buf->buf);
+ ret = vk->CreateBuffer(s->hwctx->act_dev, &buf_spawn, s->hwctx->alloc, &buf->buf);
if (ret != VK_SUCCESS) {
av_log(s, AV_LOG_ERROR, "Failed to create buffer: %s\n",
ff_vk_ret2str(ret));