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 bcbbfb78b4 avcodec/vulkan_encode: return an error if there is no 
encode queue
bcbbfb78b4 is described below

commit bcbbfb78b42ca62e0bf0d3d47746840790e71dcc
Author:     romainhedouin <[email protected]>
AuthorDate: Sat Nov 7 03:18:10 2026 +0100
Commit:     Lynne <[email protected]>
CommitDate: Sat Nov 7 13:27:37 2026 +0000

    avcodec/vulkan_encode: return an error if there is no encode queue
    
    err is still 0 here, so ff_vulkan_encode_init() reported success without
    a queue and h264_vulkan/hevc_vulkan crashed in avcodec_open2().
    
    Fixes: https://code.ffmpeg.org/FFmpeg/FFmpeg/issues/22831
    Fix written with the help of an LLM; reproduced and tested before 
submission.
    
    Signed-off-by: romainhedouin <[email protected]>
---
 libavcodec/vulkan_encode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vulkan_encode.c b/libavcodec/vulkan_encode.c
index f3bd443954..53028a8116 100644
--- a/libavcodec/vulkan_encode.c
+++ b/libavcodec/vulkan_encode.c
@@ -899,7 +899,7 @@ av_cold int ff_vulkan_encode_init(AVCodecContext *avctx, 
FFVulkanEncodeContext *
     if (!ctx->qf_enc) {
         av_log(avctx, AV_LOG_ERROR, "Encoding of %s is not supported by this 
device\n",
                avcodec_get_name(avctx->codec_id));
-        return err;
+        return AVERROR(ENOSYS);
     }
 
     /* Load all properties */

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