[vlc-devel] commit: Compilation fix. (Laurent Aimar )

git version control git at videolan.org
Wed Dec 16 22:18:26 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed Dec 16 22:18:05 2009 +0100| [300ed5ab7872847c59f2d1537528263a55365351] | committer: Laurent Aimar 

Compilation fix.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=300ed5ab7872847c59f2d1537528263a55365351
---

 modules/video_output/msw/common_vo.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/video_output/msw/common_vo.c b/modules/video_output/msw/common_vo.c
index b59db02..e63a7d1 100644
--- a/modules/video_output/msw/common_vo.c
+++ b/modules/video_output/msw/common_vo.c
@@ -226,7 +226,9 @@ void CommonManage( vout_thread_t *p_vout )
         p_vout->fmt_out.i_visible_height = p_vout->fmt_in.i_visible_height;
         p_vout->fmt_out.i_sar_num = p_vout->fmt_in.i_sar_num;
         p_vout->fmt_out.i_sar_den = p_vout->fmt_in.i_sar_den;
-        p_vout->output.i_aspect = p_vout->fmt_in.i_aspect;
+        p_vout->output.i_aspect = (int64_t)VOUT_ASPECT_FACTOR *
+                                   p_vout->fmt_in.i_sar_num * p_vout->fmt_in.i_width /
+                                   (p_vout->fmt_in.i_sar_den * p_vout->fmt_in.i_height);
         UpdateRects( p_vout, true );
     }
 




More information about the vlc-devel mailing list