Set video aspect ratio for libass in vf_vo.

This was lost when ass_configure was split into smaller functions.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21443 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
eugeni 2006-12-02 17:04:01 +00:00
parent 32356a5c81
commit ac93dafe54
1 changed files with 1 additions and 0 deletions

View File

@ -129,6 +129,7 @@ static int control(struct vf_instance_s* vf, int request, void* data)
if (video_out->control(VOCTRL_GET_EOSD_RES, &res) == VO_TRUE) {
ass_set_frame_size(vf->priv->ass_priv, res.w, res.h);
ass_set_margins(vf->priv->ass_priv, res.mt, res.mb, res.ml, res.mr);
ass_set_aspect_ratio(vf->priv->ass_priv, (double)res.w / res.h);
}
images = ass_render_frame(vf->priv->ass_priv, ass_track, (pts+sub_delay) * 1000 + .5);