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

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

commit 9fc2ca45113a95507d45bdddada2fcab3be2f968
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Wed May 22 07:40:54 2024 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sat Jun 20 17:42:28 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]>
---
 libavformat/mpegts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index d2a78c3871..dfcbe98ce3 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -2202,7 +2202,7 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, 
AVStream *st, int stream_type
             uint32_t buf;
             AVDOVIDecoderConfigurationRecord *dovi;
             size_t dovi_size;
-            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