1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 07:12:39 +00:00

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)
This commit is contained in:
Niklas Haas 2016-09-22 21:11:33 +02:00 committed by wm4
parent 075edc6fee
commit 3a43682355

View File

@ -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;
}
}