This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new e2f9861036 hwcontext_vulkan: fix stride for host image copy uploads
e2f9861036 is described below

commit e2f9861036e6c9ea981ac9b17866c01c93922345
Author:     Lynne <[email protected]>
AuthorDate: Wed Jan 21 17:07:21 2026 +0100
Commit:     Lynne <[email protected]>
CommitDate: Wed Jan 21 21:21:32 2026 +0100

    hwcontext_vulkan: fix stride for host image copy uploads
    
    Can this cursed extension ever bloody ever even work!?!
---
 libavutil/hwcontext_vulkan.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
index c31903f3ea..123ae4363c 100644
--- a/libavutil/hwcontext_vulkan.c
+++ b/libavutil/hwcontext_vulkan.c
@@ -4528,7 +4528,8 @@ static int vulkan_transfer_host(AVHWFramesContext *hwfc, 
AVFrame *hwf,
         for (int i = 0; i < planes; i++) {
             int img_idx = FFMIN(i, (nb_images - 1));
             uint32_t p_w, p_h;
-            get_plane_wh(&p_w, &p_h, swf->format, swf->width, swf->height, i);
+            get_plane_wh(&p_w, &p_h, swf->format,
+                         swf->linesize[i]/desc->comp[i].step, swf->height, i);
 
             region_info.pHostPointer = swf->data[i];
             region_info.imageSubresource.aspectMask = ff_vk_aspect_flag(hwf, 
i);

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to