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

Git pushed a commit to branch release/5.1
in repository ffmpeg.

commit f4edff2fea6edfa1b427f48bc82a91678b94e2d3
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun Jun 21 01:00:37 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Jun 21 02:56:27 2026 +0200

    avcodec/cbs_sei: Always zero-initialize SEI payload
    
    Adapted for 5.1: the non-handler branch used av_buffer_alloc() which does
    not zero the payload, so SEI payload fields that are only conditionally
    written were read uninitialized. Use av_buffer_allocz() instead.
    
    (cherry picked from commit 67e4f737ed... adapted)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/cbs_sei.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/cbs_sei.c b/libavcodec/cbs_sei.c
index 141e97ec58..0700df9b67 100644
--- a/libavcodec/cbs_sei.c
+++ b/libavcodec/cbs_sei.c
@@ -60,7 +60,7 @@ int ff_cbs_sei_alloc_message_payload(SEIRawMessage *message,
             av_buffer_create(message->payload, desc->size,
                              free_func, NULL, 0);
     } else {
-        message->payload_ref = av_buffer_alloc(desc->size);
+        message->payload_ref = av_buffer_allocz(desc->size);
     }
     if (!message->payload_ref) {
         av_freep(&message->payload);

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

Reply via email to