[MPlayer-cvslog] r21443 - trunk/libmpcodecs/vf_vo.c

eugeni subversion at mplayerhq.hu
Sat Dec 2 18:04:01 CET 2006


Author: eugeni
Date: Sat Dec  2 18:04:01 2006
New Revision: 21443

Modified:
   trunk/libmpcodecs/vf_vo.c

Log:
Set video aspect ratio for libass in vf_vo.
This was lost when ass_configure was split into smaller functions.


Modified: trunk/libmpcodecs/vf_vo.c
==============================================================================
--- trunk/libmpcodecs/vf_vo.c	(original)
+++ trunk/libmpcodecs/vf_vo.c	Sat Dec  2 18:04:01 2006
@@ -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);



More information about the MPlayer-cvslog mailing list