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

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

The following commit(s) were added to refs/heads/release/8.1 by this push:
     new b1da475805 ffv1enc_vulkan: fix typo
b1da475805 is described below

commit b1da475805bf34693ade42f6eaf8e5e29943e9c1
Author:     Lynne <[email protected]>
AuthorDate: Tue Mar 10 16:04:03 2026 +0100
Commit:     Lynne <[email protected]>
CommitDate: Tue Mar 10 19:32:38 2026 +0100

    ffv1enc_vulkan: fix typo
    
    Fixes a segfault when host mapping is unsupported.
    
    (cherry picked from commit 215e22d1f10d171bd4acd8bf40758f930bc9062a)
---
 libavcodec/ffv1enc_vulkan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/ffv1enc_vulkan.c b/libavcodec/ffv1enc_vulkan.c
index b836bbf0fa..0e891f0888 100644
--- a/libavcodec/ffv1enc_vulkan.c
+++ b/libavcodec/ffv1enc_vulkan.c
@@ -241,7 +241,7 @@ static int vulkan_encode_ffv1_submit_frame(AVCodecContext 
*avctx,
     if (maxsize < fv->max_heap_size) {
         out_buf_flags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT;
         /* If we can't map host memory, we can't let the GPU copy its buffer. 
*/
-        if (!fv->s.extensions & FF_VK_EXT_EXTERNAL_HOST_MEMORY)
+        if (!(fv->s.extensions & FF_VK_EXT_EXTERNAL_HOST_MEMORY))
             out_buf_flags |= VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT;
     } else {
         out_buf_flags = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT |

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

Reply via email to