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 2bfc7ce3ec avformat/mccdec: dont pass NULL to bytestream2_put_buffer()
2bfc7ce3ec is described below

commit 2bfc7ce3ecc3420aa4d60ac24fec8c7c9b3ab1e6
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun May 17 19:22:44 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Tue May 19 02:33:28 2026 +0000

    avformat/mccdec: dont pass NULL to bytestream2_put_buffer()
    
    Fixes: passing NULL pointer
    
    Found-by: iceray-Li
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/mccdec.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/mccdec.c b/libavformat/mccdec.c
index 4384704f32..9d72e5545e 100644
--- a/libavformat/mccdec.c
+++ b/libavformat/mccdec.c
@@ -313,7 +313,8 @@ static int mcc_read_header(AVFormatContext *s)
 
             if (v >= 16 && v <= 35) {
                 int idx = v - 16;
-                bytestream2_put_buffer(&pb, aliases[idx].value, 
aliases[idx].len);
+                if (aliases[idx].len)
+                    bytestream2_put_buffer(&pb, aliases[idx].value, 
aliases[idx].len);
             } else {
                 uint8_t vv;
 

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

Reply via email to