summaryrefslogtreecommitdiffstats
path: root/video/out/aspect.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/aspect.c')
-rw-r--r--video/out/aspect.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/video/out/aspect.c b/video/out/aspect.c
index aa2e6e64d8..a5a1f09786 100644
--- a/video/out/aspect.c
+++ b/video/out/aspect.c
@@ -96,14 +96,9 @@ void aspect_calc_panscan(struct vo *vo, int *out_w, int *out_h)
int fwidth, fheight;
aspect_calc(vo, &fwidth, &fheight);
- int vo_panscan_area;
- if (opts->panscanrange > 0) {
- vo_panscan_area = vo->dheight - fheight;
- if (!vo_panscan_area)
- vo_panscan_area = vo->dwidth - fwidth;
- vo_panscan_area *= opts->panscanrange;
- } else
- vo_panscan_area = -opts->panscanrange * vo->dheight;
+ int vo_panscan_area = vo->dheight - fheight;
+ if (!vo_panscan_area)
+ vo_panscan_area = vo->dwidth - fwidth;
*out_w = fwidth + vo_panscan_area * opts->panscan * fwidth / fheight;
*out_h = fheight + vo_panscan_area * opts->panscan;