diff options
author | wm4 <wm4@nowhere> | 2015-07-13 13:34:58 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-07-13 13:34:58 +0200 |
commit | 57efe9089cf51587d24686b98b319812e4c9ce23 (patch) | |
tree | 8c79a8aa60f67f7112506c096a313c024fcf1ce4 /options | |
parent | 0d35c78a6cf4a155ec32ccc07ce7ec80bf1e4318 (diff) | |
download | mpv-57efe9089cf51587d24686b98b319812e4c9ce23.tar.bz2 mpv-57efe9089cf51587d24686b98b319812e4c9ce23.tar.xz |
player: extend --hls-bitrate option
Fixes #2116.
Diffstat (limited to 'options')
-rw-r--r-- | options/options.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/options/options.c b/options/options.c index 7523be990a..62c9bc2286 100644 --- a/options/options.c +++ b/options/options.c @@ -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}, |