Mercurial > mplayer.hg
changeset 21427:c37fae0e2b5a
Set video aspect ratio for libass in vf_vo.
This was lost when ass_configure was split into smaller functions.
author | eugeni |
---|---|
date | Sat, 02 Dec 2006 17:04:01 +0000 |
parents | 059b4a6b78cf |
children | 47cc96df63d0 |
files | libmpcodecs/vf_vo.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vf_vo.c Sat Dec 02 16:49:13 2006 +0000 +++ b/libmpcodecs/vf_vo.c Sat Dec 02 17:04:01 2006 +0000 @@ -129,6 +129,7 @@ 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);