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

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

commit 45cf2200e1e31d44a0790e0025d390623bc8786c
Author:     Kacper Michajłow <[email protected]>
AuthorDate: Wed Jun 24 03:32:54 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sat Sep 19 14:26:46 2026 +0200

    avformat/hlsenc: initialize avg_bandwidth
    
    Fixes use of uninitialized value and dumping it into AVERAGE-BANDWIDTH
    in playlist. Note this will be correctly set when we are at final
    segment, otherwise it's optional.
    
    Fixes: fate-hls-seek test on MSAN build
    
    Signed-off-by: Kacper Michajłow <[email protected]>
    (cherry picked from commit dc953a19e6bf6b3feb765ecfbffc654aefa4e8f1)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/hlsenc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index fe33d41516..c1a4134fbb 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -1459,6 +1459,7 @@ static int create_master_playlist(AVFormatContext *s,
             avg_bandwidth = vs->avg_bitrate;
         } else {
             bandwidth = 0;
+            avg_bandwidth = 0;
             if (vid_st)
                 bandwidth += get_stream_bit_rate(vid_st);
             if (aud_st)

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