From 3a436823555b4564775c602289d8bb682c435d90 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Thu, 22 Sep 2016 21:11:33 +0200 Subject: aspect: use nominal width instead of actual width for video-unscaled The documentation claims that --video-unscaled will still perform anamorphic adjustments, and it rightfully should. The current reality is that it does not, because the video-unscaled size was based on the wrong set of variables. (encoded width/height instead of nominal display width/height) --- video/out/aspect.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/video/out/aspect.c b/video/out/aspect.c index 5cd5b32573..4515b2a5ca 100644 --- a/video/out/aspect.c +++ b/video/out/aspect.c @@ -54,9 +54,9 @@ static void aspect_calc_panscan(struct mp_vo_opts *opts, if (unscaled) { vo_panscan_area = 0; - if (unscaled != 2 || (w <= window_w && h <= window_h)) { - fwidth = w; - fheight = h; + if (unscaled != 2 || (d_w <= window_w && d_h <= window_h)) { + fwidth = d_w * monitor_par; + fheight = d_h; } } -- cgit v1.2.3