summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossy@jrg.systems>2017-08-26 00:14:32 +1000
committerJames Ross-Gowan <rossy@jrg.systems>2017-08-26 00:40:11 +1000
commit9aa091615e5f7f10b5800786d6c3bf9c68870012 (patch)
tree18c7a57f589d5e5bb9267f9b924bd29a808c1b95 /options
parent68dc7d1695e7c11b3f779960fc24bcf943e195fe (diff)
downloadmpv-9aa091615e5f7f10b5800786d6c3bf9c68870012.tar.bz2
mpv-9aa091615e5f7f10b5800786d6c3bf9c68870012.tar.xz
video: increase --monitorpixelaspect range
Some people use very wide display modes such as 3840x240 with their CRT televisions because it lessens scaling artifacts in video game emulators. When using a 3840x240 display mode on a 4:3 CRT television, the pixel aspect ratio is 1:12, so in order to watch a video with mpv on the same television without changing the display mode, the user should use --monitorpixelaspect=1:12. Unfortunately, 1:12 (or 0.083) was out of range for the --monitorpixelaspect option. There was no good reason for this, so extend the range of the option to 1:32-32:1 (0.03125-32,) which should be more than enough to support "super-wide" display modes like these. This is related to #4483, but it doesn't fix the issue (which was to do with subtitle rendering.)
Diffstat (limited to 'options')
-rw-r--r--options/options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/options/options.c b/options/options.c
index 355d482543..e747388088 100644
--- a/options/options.c
+++ b/options/options.c
@@ -142,7 +142,7 @@ static const m_option_t mp_vo_opt_list[] = {
OPT_FLAG("force-window-position", force_window_position, 0),
OPT_STRING("x11-name", winname, 0),
OPT_FLOATRANGE("monitoraspect", force_monitor_aspect, 0, 0.0, 9.0),
- OPT_FLOATRANGE("monitorpixelaspect", monitor_pixel_aspect, 0, 0.2, 9.0),
+ OPT_FLOATRANGE("monitorpixelaspect", monitor_pixel_aspect, 0, 1.0/32.0, 32.0),
OPT_FLAG("fullscreen", fullscreen, 0),
OPT_ALIAS("fs", "fullscreen"),
OPT_FLAG("native-keyrepeat", native_keyrepeat, 0),