From afee801276d5aea66057aa9d4d37a13cf7ae7372 Mon Sep 17 00:00:00 2001 From: Steven Liu Date: Wed, 27 Nov 2019 19:04:00 +0800 Subject: [PATCH] avformat/hls: correct grammatical errors of m3u8_hold_counters option Suggested-by: Gyan Suggested-by: Rodney Baker Signed-off-by: Steven Liu --- doc/demuxers.texi | 2 +- libavformat/hls.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/demuxers.texi b/doc/demuxers.texi index 4e1a5cb6aa..0d13bdd1b3 100644 --- a/doc/demuxers.texi +++ b/doc/demuxers.texi @@ -332,7 +332,7 @@ Maximum number of times a insufficient list is attempted to be reloaded. Default value is 1000. @item m3u8_hold_counters -Maximum number of times to load m3u8 when the m3u8 dose not refresh with new segments. +The maximum number of times to load m3u8 when it refreshes without new segments. Default value is 1000. @item http_persistent diff --git a/libavformat/hls.c b/libavformat/hls.c index 0b1582b2b5..21353bbad7 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -2332,7 +2332,7 @@ static const AVOption hls_options[] = { INT_MIN, INT_MAX, FLAGS}, {"max_reload", "Maximum number of times a insufficient list is attempted to be reloaded", OFFSET(max_reload), AV_OPT_TYPE_INT, {.i64 = 1000}, 0, INT_MAX, FLAGS}, - {"m3u8_hold_counters", "Maximum number of times requests when the m3u8 file not be refresh", + {"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", OFFSET(http_persistent), AV_OPT_TYPE_BOOL, {.i64 = 1}, 0, 1, FLAGS },