From 9aa091615e5f7f10b5800786d6c3bf9c68870012 Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Sat, 26 Aug 2017 00:14:32 +1000 Subject: 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.) --- options/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), -- cgit v1.2.3