PR #23577 opened by Kacper Michajłow (kasper93) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23577 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23577.patch
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 From a6578255d3ba7ab1ffd44a508409b264511a5df0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= <[email protected]> Date: Wed, 24 Jun 2026 03:32:54 +0200 Subject: [PATCH] avformat/hlsenc: initialize avg_bandwidth MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
