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 b4b30ff8fd libavutil/vulkan: fix elem_size computation in 
vulkan_export_to_cuda
b4b30ff8fd is described below

commit b4b30ff8fd1580c4fc1330afdf6c8fde242e1754
Author:     Zhao Zhili <[email protected]>
AuthorDate: Thu Jul 9 20:51:07 2026 +0800
Commit:     Niklas Haas <[email protected]>
CommitDate: Thu Jul 9 18:39:20 2026 +0000

    libavutil/vulkan: fix elem_size computation in vulkan_export_to_cuda
---
 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 fad35f9ad6..2de2de7e93 100644
--- a/libavutil/hwcontext_vulkan.c
+++ b/libavutil/hwcontext_vulkan.c
@@ -3875,7 +3875,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;

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

Reply via email to