Improve the usability.
---
libavformat/hlsenc.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 7aef02b805..e53f1d73a7 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -515,7 +515,9 @@ static const AVOption options[] = {
{"hls_time", "segment length in seconds", OFFSET(time),
AV_OPT_TYPE_FLOAT, {.dbl = 2}, 0, FLT_MAX, E},
{"hls_list_size", "maximum number of playlist entries", OFFSET(size),
AV_OPT_TYPE_INT, {.i64 = 5}, 0, INT_MAX, E},
{"hls_wrap", "number after which the index wraps", OFFSET(wrap),
AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, E},
- {"hls_allow_cache", "explicitly set whether the client MAY (1) or MUST NOT
(0) cache media segments", OFFSET(allowcache), AV_OPT_TYPE_INT, {.i64 = -1},
INT_MIN, INT_MAX, E},
+ {"hls_allow_cache", "explicitly set whether the client MAY (1) or MUST NOT
(0) cache media segments", OFFSET(allowcache), AV_OPT_TYPE_INT, {.i64 = -1},
INT_MIN, INT_MAX, E, "hls_allow_cache"},
+ {"allow", "The client MAY cache the media segments", 0, AV_OPT_TYPE_CONST,
{.i64 = 1}, 0, 0, E, "hls_allow_cache"},
+ {"disallow", "The client MUST NOT cache the media segments", 0,
AV_OPT_TYPE_CONST, {.i64 = 0}, 0, 0, E, "hls_allow_cache"},
{"hls_base_url", "url to prepend to each playlist entry",
OFFSET(baseurl), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, E},
{"hls_version", "protocol version",
OFFSET(version), AV_OPT_TYPE_INT, {.i64 = 3}, 2, 3, E},
{"hls_enc", "AES128 encryption support",
OFFSET(encrypt), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1, E},
--
2.12.2
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel