aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsoftworkz <softworkz@hotmail.com>2025-02-27 16:36:56 +0000
committerMichael Niedermayer <michael@niedermayer.cc>2025-03-01 02:47:20 +0100
commitace9f03a6c0a58b84a02701df1b6e5d5ac1d1b8e (patch)
tree17b3a0004c086abc42534f62053718698ab62743
parentb137347278fe261f32c73269469b6f9569c2e9de (diff)
downloadffmpeg-ace9f03a6c0a58b84a02701df1b6e5d5ac1d1b8e.tar.gz
avformat/hls: Partially revert "reduce default max reload to 3"
(setting to 100 as a reasonable compromise) The change has caused regressions for many users and consumers. Playlist reloads only happen when a playlist doesn't indicate that it has ended (via #EXT-X-ENDLIST), which means that the addition of future segments is still expected. It is well possible that an HLS server is temporarily unable to serve further segments but resumes after some time, either indicating a discontinuity or even by fully catching up. With a segment length of 3s, a max_reload value of 1000 corresponds to a duration of 50 minutes which appears to be a reasonable default. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/hls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c
index 3bdc1bc848..4ee142f0c4 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -2633,7 +2633,7 @@ static const AVOption hls_options[] = {
{"extension_picky", "Be picky with all extensions matching",
OFFSET(extension_picky), AV_OPT_TYPE_BOOL, {.i64 = 1}, 0, 1, FLAGS},
{"max_reload", "Maximum number of times a insufficient list is attempted to be reloaded",
- OFFSET(max_reload), AV_OPT_TYPE_INT, {.i64 = 3}, 0, INT_MAX, FLAGS},
+ OFFSET(max_reload), AV_OPT_TYPE_INT, {.i64 = 100}, 0, INT_MAX, FLAGS},
{"m3u8_hold_counters", "The maximum number of times to load m3u8 when it refreshes without new segments",
OFFSET(m3u8_hold_counters), AV_OPT_TYPE_INT, {.i64 = 1000}, 0, INT_MAX, FLAGS},
{"http_persistent", "Use persistent HTTP connections",