diff options
Diffstat (limited to 'common/encode_lavc.c')
-rw-r--r-- | common/encode_lavc.c | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/common/encode_lavc.c b/common/encode_lavc.c index b64232fb87..d246fdd6b6 100644 --- a/common/encode_lavc.c +++ b/common/encode_lavc.c @@ -77,32 +77,32 @@ struct mux_stream { #define OPT_BASE_STRUCT struct encode_opts const struct m_sub_options encode_config = { .opts = (const m_option_t[]) { - OPT_STRING("o", file, CONF_NOCFG | CONF_PRE_PARSE | M_OPT_FILE), - OPT_STRING("of", format, 0), - OPT_KEYVALUELIST("ofopts", fopts, M_OPT_HAVE_HELP), - OPT_STRING("ovc", vcodec, 0), - OPT_KEYVALUELIST("ovcopts", vopts, M_OPT_HAVE_HELP), - OPT_STRING("oac", acodec, 0), - OPT_KEYVALUELIST("oacopts", aopts, M_OPT_HAVE_HELP), - OPT_FLOATRANGE("ovoffset", voffset, 0, -1000000.0, 1000000.0, - .deprecation_message = "--audio-delay (once unbroken)"), - OPT_FLOATRANGE("oaoffset", aoffset, 0, -1000000.0, 1000000.0, - .deprecation_message = "--audio-delay (once unbroken)"), - OPT_FLAG("orawts", rawts, 0), - OPT_FLAG("ovfirst", video_first, 0, - .deprecation_message = "no replacement"), - OPT_FLAG("oafirst", audio_first, 0, - .deprecation_message = "no replacement"), - OPT_FLAG("ocopy-metadata", copy_metadata, 0), - OPT_KEYVALUELIST("oset-metadata", set_metadata, 0), - OPT_STRINGLIST("oremove-metadata", remove_metadata, 0), - - OPT_REMOVED("ocopyts", "ocopyts is now the default"), - OPT_REMOVED("oneverdrop", "no replacement"), - OPT_REMOVED("oharddup", "use --vf-add=fps=VALUE"), - OPT_REMOVED("ofps", "no replacement (use --vf-add=fps=VALUE for CFR)"), - OPT_REMOVED("oautofps", "no replacement"), - OPT_REMOVED("omaxfps", "no replacement"), + {"o", OPT_STRING(file), .flags = CONF_NOCFG | CONF_PRE_PARSE | M_OPT_FILE}, + {"of", OPT_STRING(format)}, + {"ofopts", OPT_KEYVALUELIST(fopts), .flags = M_OPT_HAVE_HELP}, + {"ovc", OPT_STRING(vcodec)}, + {"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_FLAG(rawts)}, + {"ovfirst", OPT_FLAG(video_first), + .deprecation_message = "no replacement"}, + {"oafirst", OPT_FLAG(audio_first), + .deprecation_message = "no replacement"}, + {"ocopy-metadata", OPT_FLAG(copy_metadata)}, + {"oset-metadata", OPT_KEYVALUELIST(set_metadata)}, + {"oremove-metadata", OPT_STRINGLIST(remove_metadata)}, + + {"ocopyts", OPT_REMOVED("ocopyts is now the default")}, + {"oneverdrop", OPT_REMOVED("no replacement")}, + {"oharddup", OPT_REMOVED("use --vf-add=fps=VALUE")}, + {"ofps", OPT_REMOVED("no replacement (use --vf-add=fps=VALUE for CFR)")}, + {"oautofps", OPT_REMOVED("no replacement")}, + {"omaxfps", OPT_REMOVED("no replacement")}, {0} }, .size = sizeof(struct encode_opts), |