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

Git pushed a commit to branch master
in repository ffmpeg.

commit 61ca28d6e036f2d714d20fc7a906a490c08b5cf8
Author:     Lynne <[email protected]>
AuthorDate: Sat Feb 14 14:42:09 2026 +0100
Commit:     Lynne <[email protected]>
CommitDate: Thu Feb 19 19:42:27 2026 +0100

    hwcontext_vulkan: correctly set stride for host image uploads
    
    Cursed.
---
 libavutil/hwcontext_vulkan.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
index 3a799ac44c..662a5b6107 100644
--- a/libavutil/hwcontext_vulkan.c
+++ b/libavutil/hwcontext_vulkan.c
@@ -4522,10 +4522,10 @@ 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->linesize[i]/desc->comp[i].step, swf->height, i);
+            get_plane_wh(&p_w, &p_h, swf->format, swf->width, swf->height, i);
 
             region_info.pHostPointer = swf->data[i];
+            region_info.memoryRowLength = swf->linesize[i] / 
desc->comp[i].step;
             region_info.imageSubresource.aspectMask = ff_vk_aspect_flag(hwf, 
i);
             region_info.imageExtent = (VkExtent3D){ p_w, p_h, 1 };
             copy_info.dstImage = hwf_vk->img[img_idx];

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

Reply via email to