From 00de44eec90e45f4801e45d636b6759e1fdb9d2f Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 25 Jun 2013 00:03:37 +0200 Subject: 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. --- core/options.c | 2 ++ core/options.h | 1 + 2 files changed, 3 insertions(+) (limited to 'core') 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; -- cgit v1.2.3