From da0ea43984e8e76b2ce1c72e0ab52305fcaecc48 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 23 Jun 2026 15:57:23 +0200 Subject: [PATCH] avutil/hwcontext_vulkan: Move AVVkFrame.internal to the end This allows us to remove it by allocating AVVkFrameInternal jointly with AVVkFrame. Signed-off-by: Andreas Rheinhardt --- libavutil/hwcontext_vulkan.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavutil/hwcontext_vulkan.h b/libavutil/hwcontext_vulkan.h index efe29f54b4..87c2a2d28d 100644 --- a/libavutil/hwcontext_vulkan.h +++ b/libavutil/hwcontext_vulkan.h @@ -306,11 +306,6 @@ struct AVVkFrame { */ uint64_t sem_value[AV_NUM_DATA_POINTERS]; - /** - * Internal data. - */ - struct AVVkFrameInternal *internal; - /** * Describes the binding offset of each image to the VkDeviceMemory. * One per VkImage. @@ -323,6 +318,11 @@ struct AVVkFrame { * One per VkImage. */ uint32_t queue_family[AV_NUM_DATA_POINTERS]; + + /** + * Internal data. Not to be accessed by users in any way. + */ + struct AVVkFrameInternal *internal; }; /**