avutil/vulkan: fix device memory size truncation

size_t cannot fit VK_WHOLE_SIZE on 32-bit builds.

Fixes: warning: conversion from 'long long unsigned int' to 'size_t' {aka 'unsigned int'} changes value from '18446744073709551615' to '4294967295'

Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
This commit is contained in:
Kacper Michajłow
2025-12-01 21:30:26 +01:00
parent 3cc10b5ff6
commit 9ed71a837b
2 changed files with 2 additions and 2 deletions

View File

@@ -1168,7 +1168,7 @@ int ff_vk_map_buffers(FFVulkanContext *s, FFVkBuffer **buf, uint8_t *mem[],
} }
int ff_vk_flush_buffer(FFVulkanContext *s, FFVkBuffer *buf, int ff_vk_flush_buffer(FFVulkanContext *s, FFVkBuffer *buf,
size_t offset, size_t mem_size, VkDeviceSize offset, VkDeviceSize mem_size,
int flush) int flush)
{ {
VkResult ret; VkResult ret;

View File

@@ -527,7 +527,7 @@ int ff_vk_create_buf(FFVulkanContext *s, FFVkBuffer *buf, size_t size,
* Flush or invalidate a single buffer, with a given size and offset. * Flush or invalidate a single buffer, with a given size and offset.
*/ */
int ff_vk_flush_buffer(FFVulkanContext *s, FFVkBuffer *buf, int ff_vk_flush_buffer(FFVulkanContext *s, FFVkBuffer *buf,
size_t offset, size_t mem_size, VkDeviceSize offset, VkDeviceSize mem_size,
int flush); int flush);
/** /**