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
1 changed files with 3 additions and 3 deletions

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