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 Diogo Franco (Kovensky)
parent 392159337f
commit cd99121185
1 changed files with 1 additions and 1 deletions

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;