summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2023-10-19 17:26:43 +0600
committerDudemanguy <random342@airmail.cc>2023-10-23 00:10:42 +0000
commita1f465b582c375ee639e863dd54d9e49aee702ce (patch)
tree37256421b1d51102ff529637a96059e9b42534e8 /video
parent05e6813eb2088477ab94607f5a2199da161beb48 (diff)
downloadmpv-a1f465b582c375ee639e863dd54d9e49aee702ce.tar.bz2
mpv-a1f465b582c375ee639e863dd54d9e49aee702ce.tar.xz
aspect: remove unused multiplication
the variable `w` is unused as a whole.
Diffstat (limited to 'video')
-rw-r--r--video/out/aspect.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/video/out/aspect.c b/video/out/aspect.c
index 2e34419118..6e1cd63b02 100644
--- a/video/out/aspect.c
+++ b/video/out/aspect.c
@@ -31,8 +31,6 @@ static void aspect_calc_panscan(struct mp_vo_opts *opts,
int window_w, int window_h, double monitor_par,
int *out_w, int *out_h)
{
- w *= monitor_par;
-
int fwidth = window_w;
int fheight = (float)window_w / d_w * d_h / monitor_par;
if (fheight > window_h || fheight < h) {