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

Git pushed a commit to branch master
in repository ffmpeg.

commit 20ac8c36880914321b5a1a6616374e84dd07429c
Author:     Kacper Michajłow <[email protected]>
AuthorDate: Wed Dec 31 02:58:58 2025 +0100
Commit:     Lynne <[email protected]>
CommitDate: Wed Dec 31 10:30:36 2025 +0000

    avfilter/vulkan_filter: fix logic error when checking for encode support
    
    Both FF_VK_EXT_VIDEO_ENCODE_QUEUE and FF_VK_EXT_VIDEO_MAINTENANCE_1 are
    required, not only one of them.
    
    Found by VVL.
    
    Signed-off-by: Kacper Michajłow <[email protected]>
---
 libavfilter/vulkan_filter.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/vulkan_filter.c b/libavfilter/vulkan_filter.c
index a9f47741ed..e049efec03 100644
--- a/libavfilter/vulkan_filter.c
+++ b/libavfilter/vulkan_filter.c
@@ -74,8 +74,8 @@ int ff_vk_filter_init_context(AVFilterContext *avctx, 
FFVulkanContext *s,
         /* If format supports hardware encoding, make sure
          * the context includes it. */
         if (vk_frames->format[1] == VK_FORMAT_UNDEFINED &&
-            (s->extensions & (FF_VK_EXT_VIDEO_ENCODE_QUEUE |
-                              FF_VK_EXT_VIDEO_MAINTENANCE_1))) {
+            (s->extensions & FF_VK_EXT_VIDEO_ENCODE_QUEUE) &&
+            (s->extensions & FF_VK_EXT_VIDEO_MAINTENANCE_1)) {
             VkFormatProperties3 fprops = {
                 .sType = VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_3,
             };

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

Reply via email to