summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/options.c2
-rw-r--r--core/options.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/core/options.c b/core/options.c
index 3ce4315572..40c8527394 100644
--- a/core/options.c
+++ b/core/options.c
@@ -492,6 +492,7 @@ const m_option_t mp_opts[] = {
OPT_STRING("subcp", sub_cp, 0),
OPT_FLOAT("sub-delay", sub_delay, 0),
OPT_FLOAT("subfps", sub_fps, 0),
+ OPT_FLOAT("sub-speed", sub_speed, 0),
OPT_FLAG("autosub", sub_auto, 0),
OPT_FLAG("sub-visibility", sub_visibility, 0),
OPT_FLAG("sub-forced-only", forced_subs_only, 0),
@@ -786,6 +787,7 @@ const struct MPOpts mp_default_opts = {
.audio_display = 1,
.sub_visibility = 1,
.sub_pos = 100,
+ .sub_speed = 1.0,
.extension_parsing = 1,
.audio_output_channels = MP_CHMAP_INIT_STEREO,
.audio_output_format = -1, // AF_FORMAT_UNKNOWN
diff --git a/core/options.h b/core/options.h
index 6ec051ddca..0c6f6c7271 100644
--- a/core/options.h
+++ b/core/options.h
@@ -141,6 +141,7 @@ typedef struct MPOpts {
int sub_pos;
float sub_delay;
float sub_fps;
+ float sub_speed;
int forced_subs_only;
char *quvi_format;