diff options
author | Niklas Haas <git@haasn.xyz> | 2016-09-22 21:11:33 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-22 21:24:56 +0200 |
commit | 3a436823555b4564775c602289d8bb682c435d90 (patch) | |
tree | ebc216d66a604115f7de6335b9cfc2bc36e4de63 /video/out | |
parent | 075edc6feea0273bacf4ea26e8866c32d83e3ad8 (diff) | |
download | mpv-3a436823555b4564775c602289d8bb682c435d90.tar.bz2 mpv-3a436823555b4564775c602289d8bb682c435d90.tar.xz |
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)
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/aspect.c | 6 |
1 files 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; } } |