mirror of https://github.com/mpv-player/mpv
vo: remove aspdat.asp member
This was bad, because it was the only aspdat member updated by vo_get_src_dst_rects() instead of vo_reconfig(). Now it isn't accessed anymore, so remove it.
This commit is contained in:
parent
eb7959e43a
commit
05cf512dc5
|
@ -86,7 +86,6 @@ static void aspect_calc(struct vo *vo, int *srcw, int *srch)
|
|||
"[ASPECT] Warning: No suitable new res found!\n");
|
||||
}
|
||||
}
|
||||
aspdat->asp = *srcw / (float)*srch;
|
||||
mp_msg(MSGT_VO, MSGL_DBG2, "aspect(2) wh: %dx%d (org: %dx%d)\n",
|
||||
*srcw, *srch, aspdat->prew, aspdat->preh);
|
||||
}
|
||||
|
@ -106,6 +105,6 @@ void aspect_calc_panscan(struct vo *vo, int *out_w, int *out_h)
|
|||
} else
|
||||
vo_panscan_area = -opts->panscanrange * vo->dheight;
|
||||
|
||||
*out_w = fwidth + vo_panscan_area * opts->panscan * vo->aspdat.asp;
|
||||
*out_w = fwidth + vo_panscan_area * opts->panscan * fwidth / fheight;
|
||||
*out_h = fheight + vo_panscan_area * opts->panscan;
|
||||
}
|
||||
|
|
|
@ -283,7 +283,6 @@ struct vo {
|
|||
int prew; // prescaled width
|
||||
int preh; // prescaled height
|
||||
float par; // pixel aspect ratio out of orgw/orgh and prew/preh
|
||||
float asp; // final video display aspect
|
||||
} aspdat;
|
||||
|
||||
char *window_title;
|
||||
|
|
Loading…
Reference in New Issue