summaryrefslogtreecommitdiffstats
path: root/common/encode_lavc.c
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-09-19 23:37:51 -0500
committerDudemanguy <random342@airmail.cc>2023-09-21 16:06:29 +0000
commit36ea5d7b5cafabba605aaa334017c48b27d6f5be (patch)
treef38973892c8128d819d093f33a9fd194eb38a5d5 /common/encode_lavc.c
parent4b2276b730c8542649b665aaec187e1c7e3b2612 (diff)
downloadmpv-36ea5d7b5cafabba605aaa334017c48b27d6f5be.tar.bz2
mpv-36ea5d7b5cafabba605aaa334017c48b27d6f5be.tar.xz
options: remove a few options marked with .deprecation_message
A bit different from the OPT_REPLACED/OPT_REMOVED ones in that the options still possibly do something but they have a deprecation message. Most of these are old and have no real usage. The only potentially controversial ones are the removal of --oaffset and --ovoffset which were deprecated years ago and seemingly have no real replacement. There's a cryptic message about --audio-delay but who knows. The less encoding mode code we have, the better so just chuck it.
Diffstat (limited to 'common/encode_lavc.c')
-rw-r--r--common/encode_lavc.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/common/encode_lavc.c b/common/encode_lavc.c
index f52d50a7e2..47e9883e0c 100644
--- a/common/encode_lavc.c
+++ b/common/encode_lavc.c
@@ -83,15 +83,7 @@ const struct m_sub_options encode_config = {
{"ovcopts", OPT_KEYVALUELIST(vopts), .flags = M_OPT_HAVE_HELP},
{"oac", OPT_STRING(acodec)},
{"oacopts", OPT_KEYVALUELIST(aopts), .flags = M_OPT_HAVE_HELP},
- {"ovoffset", OPT_FLOAT(voffset), M_RANGE(-1000000.0, 1000000.0),
- .deprecation_message = "--audio-delay (once unbroken)"},
- {"oaoffset", OPT_FLOAT(aoffset), M_RANGE(-1000000.0, 1000000.0),
- .deprecation_message = "--audio-delay (once unbroken)"},
{"orawts", OPT_BOOL(rawts)},
- {"ovfirst", OPT_BOOL(video_first),
- .deprecation_message = "no replacement"},
- {"oafirst", OPT_BOOL(audio_first),
- .deprecation_message = "no replacement"},
{"ocopy-metadata", OPT_BOOL(copy_metadata)},
{"oset-metadata", OPT_KEYVALUELIST(set_metadata)},
{"oremove-metadata", OPT_STRINGLIST(remove_metadata)},
@@ -954,13 +946,4 @@ fail:
return false;
}
-double encoder_get_offset(struct encoder_context *p)
-{
- switch (p->encoder->codec_type) {
- case AVMEDIA_TYPE_VIDEO: return p->options->voffset;
- case AVMEDIA_TYPE_AUDIO: return p->options->aoffset;
- default: return 0;
- }
-}
-
// vim: ts=4 sw=4 et