summaryrefslogtreecommitdiffstats
path: root/filters
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-03-12 14:04:14 +0100
committerwm4 <wm4@nowhere>2020-03-13 16:50:27 +0100
commit3006c4ba5dd119160bdcf1d650c66197a44de602 (patch)
treecda909eb7c3055d9812b9e1ce473493efce6fb66 /filters
parent06718da79c79a98d5524f42d034b0d406b14e04c (diff)
downloadmpv-3006c4ba5dd119160bdcf1d650c66197a44de602.tar.bz2
mpv-3006c4ba5dd119160bdcf1d650c66197a44de602.tar.xz
options: remove min/max support from strings and string lists
We don't really use this anymore. Only --playlist and vf_lavfi filter names did (to error on empty parameters), but it doesn't really matter.
Diffstat (limited to 'filters')
-rw-r--r--filters/f_lavfi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/filters/f_lavfi.c b/filters/f_lavfi.c
index 71624a449b..2e612d14fc 100644
--- a/filters/f_lavfi.c
+++ b/filters/f_lavfi.c
@@ -1091,7 +1091,7 @@ const struct mp_user_filter_entry af_lavfi = {
.name = "lavfi",
.priv_size = sizeof(OPT_BASE_STRUCT),
.options = (const m_option_t[]){
- OPT_STRING("graph", graph, M_OPT_MIN, .min = 1),
+ OPT_STRING("graph", graph, 0),
OPT_FLAG("fix-pts", fix_pts, 0),
OPT_KEYVALUELIST("o", avopts, 0),
{0}
@@ -1110,7 +1110,7 @@ const struct mp_user_filter_entry af_lavfi_bridge = {
.name = "lavfi-bridge",
.priv_size = sizeof(OPT_BASE_STRUCT),
.options = (const m_option_t[]){
- OPT_STRING("name", filter_name, M_OPT_MIN, .min = 1),
+ OPT_STRING("name", filter_name, 0),
OPT_KEYVALUELIST("opts", filter_opts, 0),
OPT_KEYVALUELIST("o", avopts, 0),
{0}
@@ -1130,7 +1130,7 @@ const struct mp_user_filter_entry vf_lavfi = {
.name = "lavfi",
.priv_size = sizeof(OPT_BASE_STRUCT),
.options = (const m_option_t[]){
- OPT_STRING("graph", graph, M_OPT_MIN, .min = 1),
+ OPT_STRING("graph", graph, 0),
OPT_KEYVALUELIST("o", avopts, 0),
{0}
},
@@ -1148,7 +1148,7 @@ const struct mp_user_filter_entry vf_lavfi_bridge = {
.name = "lavfi-bridge",
.priv_size = sizeof(OPT_BASE_STRUCT),
.options = (const m_option_t[]){
- OPT_STRING("name", filter_name, M_OPT_MIN, .min = 1),
+ OPT_STRING("name", filter_name, 0),
OPT_KEYVALUELIST("opts", filter_opts, 0),
OPT_KEYVALUELIST("o", avopts, 0),
{0}