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

Git pushed a commit to branch release/8.1
in repository ffmpeg.

commit 420e7a49b72947f78ea488e7ccbbd7d55df82cff
Author:     Zhao Zhili <[email protected]>
AuthorDate: Thu Jul 9 20:51:07 2026 +0800
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sat Nov 28 09:24:23 2026 +0100

    libavutil/vulkan: fix elem_size computation in vulkan_export_to_cuda
    
    (cherry picked from commit b4b30ff8fd1580c4fc1330afdf6c8fde242e1754)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavutil/hwcontext_vulkan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
index 48822a5825..cc4112958e 100644
--- a/libavutil/hwcontext_vulkan.c
+++ b/libavutil/hwcontext_vulkan.c
@@ -3957,7 +3957,7 @@ static int vulkan_export_to_cuda(AVHWFramesContext *hwfc,
     CudaFunctions *cu = cu_internal->cuda_dl;
     CUarray_format cufmt = desc->comp[0].depth > 8 ? 
CU_AD_FORMAT_UNSIGNED_INT16 :
                                                      
CU_AD_FORMAT_UNSIGNED_INT8;
-    const int elem_size = 1 + desc->comp[0].depth > 8;
+    const int elem_size = 1 + (desc->comp[0].depth > 8);
 
     dst_f = (AVVkFrame *)frame->data[0];
     dst_int = dst_f->internal;

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to