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 dc953a19e6 avformat/hlsenc: initialize avg_bandwidth
dc953a19e6 is described below
commit dc953a19e6bf6b3feb765ecfbffc654aefa4e8f1
Author: Kacper Michajłow <[email protected]>
AuthorDate: Wed Jun 24 03:32:54 2026 +0200
Commit: Kacper Michajłow <[email protected]>
CommitDate: Wed Jun 24 02:04:02 2026 +0000
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]>
---
libavformat/hlsenc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index c9adbe5b44..0b69ae4b3b 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -1472,6 +1472,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)
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]