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

Git pushed a commit to branch master
in repository ffmpeg.

commit a3bfdd7318929fea85872db37aa37f28dddc04d2
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Oct 13 06:39:23 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sun Oct 18 22:47:35 2026 +0000

    avcodec/decode: use avcodec_get_hw_config() in avcodec_default_get_format()
    
    This is not a security issue.
    
    Fixes: e5BUoyG1Jo3N
    Fixes: swarm-NULL-pointer-dereference-in-hw_configs-iteration-0b77cc
    Regression since: 67e81d79cc
    NULL pointer member access Replicated through API with UBSAN
    Found-by: zhang xingxing <[email protected]>
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/decode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/decode.c b/libavcodec/decode.c
index 627ad9420a..96da70fb7e 100644
--- a/libavcodec/decode.c
+++ b/libavcodec/decode.c
@@ -1019,7 +1019,7 @@ enum AVPixelFormat avcodec_default_get_format(struct 
AVCodecContext *avctx,
         AVHWDeviceContext *device_ctx =
             (AVHWDeviceContext*)avctx->hw_device_ctx->data;
         for (i = 0;; i++) {
-            config = &ffcodec(avctx->codec)->hw_configs[i]->public;
+            config = avcodec_get_hw_config(avctx->codec, i);
             if (!config)
                 break;
             if (!(config->methods &

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