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 8a58754dfa6d6246d0d4094333c01c09c7e0daf8
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Wed May 22 07:40:54 2024 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Jun 21 02:56:27 2026 +0200

    avformat/mpegts: Don't use uninitialized value in av_log()
    
    It is undefined behaviour in (at least) C11 (see C11 6.3.2.1 (2)).
    Fixes Coverity issue #1500314.
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
    (cherry picked from commit 65763bffb6e2a7dbb281e302b7adf7ee7b5330a9)
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit 9fc2ca45113a95507d45bdddada2fcab3be2f968)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/mpegts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index b81642c8c5..33c0b501d7 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -2196,7 +2196,7 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, 
AVStream *st, int stream_type
             AVDOVIDecoderConfigurationRecord *dovi;
             size_t dovi_size;
             int ret;
-            int dependency_pid;
+            int dependency_pid = -1; // Unset
 
             if (desc_end - *pp < 4) // (8 + 8 + 7 + 6 + 1 + 1 + 1) / 8
                 return AVERROR_INVALIDDATA;

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

Reply via email to