[FFmpeg-cvslog] hwcontext_vulkan: constify validation layer features table
Lynne
git at videolan.org
Sun Aug 11 06:21:03 EEST 2024
ffmpeg | branch: master | Lynne <dev at lynne.ee> | Wed Jul 24 00:39:31 2024 +0200| [957d34784ad98cb342cd8b23f114b17094f92f5c] | committer: Lynne
hwcontext_vulkan: constify validation layer features table
The struct data seem to get corrupted otherwise.
Possibly a validation layer or libvulkan issue.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=957d34784ad98cb342cd8b23f114b17094f92f5c
---
libavutil/hwcontext_vulkan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
index a022eda93b..bd32ecef9c 100644
--- a/libavutil/hwcontext_vulkan.c
+++ b/libavutil/hwcontext_vulkan.c
@@ -777,7 +777,7 @@ static int create_instance(AVHWDeviceContext *ctx, AVDictionary *opts)
goto fail;
if (debug_mode) {
- VkValidationFeatureEnableEXT feat_list[] = {
+ static const VkValidationFeatureEnableEXT feat_list[] = {
VK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_EXT,
VK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_RESERVE_BINDING_SLOT_EXT,
VK_VALIDATION_FEATURE_ENABLE_SYNCHRONIZATION_VALIDATION_EXT,
More information about the ffmpeg-cvslog
mailing list