summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-03-22 13:09:34 +0100
committerwm4 <wm4@nowhere>2020-03-22 13:09:34 +0100
commit019f95cf992419228a89d5dd8d9897e8862a07a2 (patch)
tree6c8148a9bcbde00273912a1055240bcc0a4469d0
parent63311762ede9a29354383448582b89769db7ab94 (diff)
downloadmpv-019f95cf992419228a89d5dd8d9897e8862a07a2.tar.bz2
mpv-019f95cf992419228a89d5dd8d9897e8862a07a2.tar.xz
encode: deprecate encoding mode
While I'd like to keep it, I'm apparently the maintainer now, and I have no idea what the heck some of this code does, so it's deprecated.
-rw-r--r--DOCS/interface-changes.rst1
-rw-r--r--common/encode_lavc.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/DOCS/interface-changes.rst b/DOCS/interface-changes.rst
index d35164f718..2290c6c6b1 100644
--- a/DOCS/interface-changes.rst
+++ b/DOCS/interface-changes.rst
@@ -56,6 +56,7 @@ Interface changes
- add playlist-current-pos, playlist-playing-pos properties
- Lua end-file events do not set the "error" field anymore, use "file_error"
instead.
+ - deprecate encoding mode (lack of maintainer)
--- mpv 0.32.0 ---
- change behavior when using legacy option syntax with options that start
with two dashes (``--`` instead of a ``-``). Now, using the recommended
diff --git a/common/encode_lavc.c b/common/encode_lavc.c
index f798a7007a..4d435a11ca 100644
--- a/common/encode_lavc.c
+++ b/common/encode_lavc.c
@@ -77,7 +77,8 @@ struct mux_stream {
#define OPT_BASE_STRUCT struct encode_opts
const struct m_sub_options encode_config = {
.opts = (const m_option_t[]) {
- {"o", OPT_STRING(file), .flags = CONF_NOCFG | CONF_PRE_PARSE | M_OPT_FILE},
+ {"o", OPT_STRING(file), .flags = CONF_NOCFG | CONF_PRE_PARSE | M_OPT_FILE,
+ .deprecation_message = "lack of maintainer"},
{"of", OPT_STRING(format)},
{"ofopts", OPT_KEYVALUELIST(fopts), .flags = M_OPT_HAVE_HELP},
{"ovc", OPT_STRING(vcodec)},