diff options
author | Christoph Heinrich <christoph.heinrich@student.tugraz.at> | 2023-02-20 04:32:50 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-02-21 17:15:17 +0000 |
commit | 91cc0d8cf6a2cf264c243ca3b3e99b5fd4044c29 (patch) | |
tree | 448b141d92c9ea7636954213b587aaf380fc21db /filters/f_lavfi.c | |
parent | b9850a6e8c45f95563a703af7f21dfe1c1ee40b6 (diff) | |
download | mpv-91cc0d8cf6a2cf264c243ca3b3e99b5fd4044c29.tar.bz2 mpv-91cc0d8cf6a2cf264c243ca3b3e99b5fd4044c29.tar.xz |
options: transition options from OPT_FLAG to OPT_BOOL
c78482045444c488bb7948305d583a55d17cd236 introduced a bool option type
as a replacement for the flag type, but didn't actually transition and
remove the flag type because it would have been too much mundane work.
Diffstat (limited to 'filters/f_lavfi.c')
-rw-r--r-- | filters/f_lavfi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filters/f_lavfi.c b/filters/f_lavfi.c index 14ed2483a2..597cf91fc0 100644 --- a/filters/f_lavfi.c +++ b/filters/f_lavfi.c @@ -946,7 +946,7 @@ struct lavfi_user_opts { char *filter_name; char **filter_opts; - int fix_pts; + bool fix_pts; char *hwdec_interop; }; @@ -1119,7 +1119,7 @@ const struct mp_user_filter_entry af_lavfi = { .priv_size = sizeof(OPT_BASE_STRUCT), .options = (const m_option_t[]){ {"graph", OPT_STRING(graph)}, - {"fix-pts", OPT_FLAG(fix_pts)}, + {"fix-pts", OPT_BOOL(fix_pts)}, {"o", OPT_KEYVALUELIST(avopts)}, {"hwdec_interop", OPT_STRING_VALIDATE(hwdec_interop, |