diff mbox series

[FFmpeg-devel,4/5] avutil/hwcontext_vulkan: Cosmetics

Message ID GV1P250MB0737A78A015947C8A843F7908FF7A@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit dfac782b13fc607f7b18067635b07bbcabc4db8f
Headers show
Series [FFmpeg-devel,1/5] avutil/hwcontext_vulkan: Remove redundant resetting | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 14, 2023, 11:45 p.m. UTC
The alignment in vulkan_unmap_from_drm() (formerly the clone
of vulkan_frame_free()) is nicer than the in vulkan_frame_free(),
let's preserve it.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavutil/hwcontext_vulkan.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
index 0c846fde38..c676f4fc57 100644
--- a/libavutil/hwcontext_vulkan.c
+++ b/libavutil/hwcontext_vulkan.c
@@ -1786,9 +1786,10 @@  static void vulkan_frame_free(AVHWFramesContext *hwfc, AVVkFrame *f)
     int nb_images = ff_vk_count_images(f);
 
     VkSemaphoreWaitInfo sem_wait = {
-        .sType = VK_STRUCTURE_TYPE_SEMAPHORE_WAIT_INFO,
-        .pSemaphores = f->sem,
-        .pValues = f->sem_value,
+        .sType          = VK_STRUCTURE_TYPE_SEMAPHORE_WAIT_INFO,
+        .flags          = 0x0,
+        .pSemaphores    = f->sem,
+        .pValues        = f->sem_value,
         .semaphoreCount = nb_images,
     };