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

Git pushed a commit to branch master
in repository ffmpeg.

commit bbf8a9066fdbedbee9bb7f3ee6b52212c84aa516
Author:     Niklas Haas <[email protected]>
AuthorDate: Tue Oct 20 02:15:34 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Tue Oct 20 19:50:40 2026 +0000

    swscale/vulkan/ops: simplify device reinit check in ff_sws_vk_init()
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/vulkan/ops.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libswscale/vulkan/ops.c b/libswscale/vulkan/ops.c
index 49bf997d66..cb8cb09c6b 100644
--- a/libswscale/vulkan/ops.c
+++ b/libswscale/vulkan/ops.c
@@ -49,11 +49,11 @@ int ff_sws_vk_init(SwsContext *sws, AVBufferRef *dev_ref)
     }
 
     FFVulkanOpsCtx *s = c->hw_priv;
-    if (s->vkctx.device_ref && s->vkctx.device_ref->data != dev_ref->data) {
+    if (s->vkctx.device_ref) {
+        if (s->vkctx.device_ref->data == dev_ref->data)
+            return 0;
         /* Reinitialize with new context */
         ff_vk_uninit(&s->vkctx);
-    } else if (s->vkctx.device_ref && s->vkctx.device_ref->data == 
dev_ref->data) {
-        return 0;
     }
 
     err = ff_vk_init(&s->vkctx, sws, dev_ref, NULL);

-- 
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