summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-05-29 14:33:40 +0200
committerPhilip Langdale <github.philipl@overt.org>2023-05-29 12:33:43 -0700
commitba5370e82a1139a249f27b78d22e8fe4092ad024 (patch)
tree08f0b1bec78eadfe389fd3f048c4e12f8db32718 /video
parentc40bd888729212f698156b57e49391d3b51f8f07 (diff)
downloadmpv-ba5370e82a1139a249f27b78d22e8fe4092ad024.tar.bz2
mpv-ba5370e82a1139a249f27b78d22e8fe4092ad024.tar.xz
vo/vulkan: do not define zero sized array
It is not needed at all.
Diffstat (limited to 'video')
-rw-r--r--video/out/vulkan/context.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/video/out/vulkan/context.c b/video/out/vulkan/context.c
index de8ee2266c..8bec39cf8c 100644
--- a/video/out/vulkan/context.c
+++ b/video/out/vulkan/context.c
@@ -195,8 +195,6 @@ bool ra_vk_ctx_init(struct ra_ctx *ctx, struct mpvk_ctx *vk,
};
#else
- const char *opt_extensions[] = {
- };
VkPhysicalDeviceFeatures2 features = {
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2,
};
@@ -214,10 +212,10 @@ bool ra_vk_ctx_init(struct ra_ctx *ctx, struct mpvk_ctx *vk,
.device_name = p->opts->device,
#if HAVE_VULKAN_INTEROP && defined(VK_EXT_descriptor_buffer)
.extra_queues = VK_QUEUE_VIDEO_DECODE_BIT_KHR,
-#endif
- .features = &features,
.opt_extensions = opt_extensions,
.num_opt_extensions = MP_ARRAY_SIZE(opt_extensions),
+#endif
+ .features = &features,
});
if (!vk->vulkan)
goto error;