various: fix range for float options
The range of these options should be capped to FLT_MAX instead of DBL_MAX.
This commit is contained in:
1 parent
df3872e318
commit
0903e9fbd4
2 files changed
+4
-4
No files matched your search
@@ -652,10 +652,10 @@ const struct mp_user_filter_entry af_scaletempo = {
|
||||
.scale_nominal = 1.0,
|
||||
},
|
||||
.options = (const struct m_option[]) {
|
||||
{"scale", OPT_FLOAT(scale_nominal), M_RANGE(0.01, DBL_MAX)},
|
||||
{"stride", OPT_FLOAT(ms_stride), M_RANGE(0.01, DBL_MAX)},
|
||||
{"scale", OPT_FLOAT(scale_nominal), M_RANGE(0.01, FLT_MAX)},
|
||||
{"stride", OPT_FLOAT(ms_stride), M_RANGE(0.01, FLT_MAX)},
|
||||
{"overlap", OPT_FLOAT(factor_overlap), M_RANGE(0, 1)},
|
||||
{"search", OPT_FLOAT(ms_search), M_RANGE(0, DBL_MAX)},
|
||||
{"search", OPT_FLOAT(ms_search), M_RANGE(0, FLT_MAX)},
|
||||
{"speed", OPT_CHOICE(speed_opt,
|
||||
{"pitch", SCALE_PITCH},
|
||||
{"tempo", SCALE_TEMPO},
|
||||
|
||||
+1
-1
@@ -634,7 +634,7 @@ static const m_option_t mp_opts[] = {
|
||||
{"prefetch-playlist", OPT_BOOL(prefetch_open)},
|
||||
{"cache-pause", OPT_BOOL(cache_pause)},
|
||||
{"cache-pause-initial", OPT_BOOL(cache_pause_initial)},
|
||||
{"cache-pause-wait", OPT_FLOAT(cache_pause_wait), M_RANGE(0, DBL_MAX)},
|
||||
{"cache-pause-wait", OPT_FLOAT(cache_pause_wait), M_RANGE(0, FLT_MAX)},
|
||||
|
||||
#if HAVE_DVBIN
|
||||
{"dvbin", OPT_SUBSTRUCT(stream_dvb_opts, stream_dvb_conf)},
|
||||
|
||||
Reference in new issue
Block a user