player: extend --hls-bitrate option

Fixes #2116.
This commit is contained in:
wm4
2015-07-13 13:34:58 +02:00
parent 0d35c78a6c
commit 57efe9089c
3 changed files with 17 additions and 8 deletions

View File

@@ -223,8 +223,8 @@ const m_option_t mp_opts[] = {
OPT_CHOICE("audio-display", audio_display, 0,
({"no", 0}, {"attachment", 1})),
OPT_CHOICE("hls-bitrate", hls_bitrate, 0,
({"no", 0}, {"min", 1}, {"max", 2})),
OPT_CHOICE_OR_INT("hls-bitrate", hls_bitrate, 0, 0, INT_MAX,
({"no", -1}, {"min", 0}, {"max", INT_MAX})),
OPT_STRINGLIST("display-tags*", display_tags, 0),
@@ -722,7 +722,7 @@ const struct MPOpts mp_default_opts = {
.demuxer_min_secs = 1.0,
.network_rtsp_transport = 2,
.network_timeout = 0.0,
.hls_bitrate = 2,
.hls_bitrate = INT_MAX,
.demuxer_min_secs_cache = 10.0,
.cache_pausing = 1,
.chapterrange = {-1, -1},