1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 06:42:03 +00:00

video/out/win_state.c: fix --monitoraspect

This commit is contained in:
Soeren D. Schulze 2015-01-05 17:23:56 +01:00 committed by wm4
parent 6719662fed
commit 2ab259e683

View File

@ -26,7 +26,7 @@ static void calc_monitor_aspect(struct mp_vo_opts *opts, int scr_w, int scr_h,
*pixelaspect = 1.0 / opts->monitor_pixel_aspect;
if (scr_w > 0 && scr_h > 0 && opts->force_monitor_aspect)
*pixelaspect = opts->force_monitor_aspect * scr_h / scr_w;
*pixelaspect = 1.0 / (opts->force_monitor_aspect * scr_h / scr_w);
if (*pixelaspect < 1) {
*h /= *pixelaspect;