summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-06-25 00:03:37 +0200
committerwm4 <wm4@nowhere>2013-06-25 00:34:58 +0200
commit00de44eec90e45f4801e45d636b6759e1fdb9d2f (patch)
tree944b084ba34c465e861c0bd6f48bdccabcf82556 /core
parent125c20bd081a7d99681f3ac25174c1360b885436 (diff)
downloadmpv-00de44eec90e45f4801e45d636b6759e1fdb9d2f.tar.bz2
mpv-00de44eec90e45f4801e45d636b6759e1fdb9d2f.tar.xz
options: add -sub-speed option
Should we actually get into trouble for unproper handling of frame-based subtitle formats, this might be the simplest way to work this around. Also is a bit more intuitive than -subfps, which might use an unknown, misdetected, or non-sense video FPS. Still pretty silly, though.
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;