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)