[vlc-commits] commit: Fixed typo in vout subpicture rendering regarding AR. ( Laurent Aimar )

git at videolan.org git at videolan.org
Sun Jan 9 22:44:21 CET 2011


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Dec 13 20:33:15 2010 +0100| [07498c200c78fb637d0f7a16ac040667c755a532] | committer: Laurent Aimar 

Fixed typo in vout subpicture rendering regarding AR.

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

 src/video_output/vout_subpictures.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index 9900999..4ae651e 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -1193,13 +1193,13 @@ static subpicture_t *SpuRenderSubpictures( spu_t *p_spu,
         p_region = p_subpic->p_region;
         if( !p_region->fmt.i_sar_num || !p_region->fmt.i_sar_den )
         {
-            p_region->fmt.i_sar_den = p_fmt_dst->i_sar_den;
-            p_region->fmt.i_sar_num = p_fmt_dst->i_sar_num;
+            p_region->fmt.i_sar_den = p_fmt_src->i_sar_den;
+            p_region->fmt.i_sar_num = p_fmt_src->i_sar_num;
         }
 
         /* Take care of the aspect ratio */
-        if( p_region->fmt.i_sar_num * p_fmt_dst->i_sar_den !=
-            p_region->fmt.i_sar_den * p_fmt_dst->i_sar_num )
+        if( p_region->fmt.i_sar_num * p_fmt_src->i_sar_den !=
+            p_region->fmt.i_sar_den * p_fmt_src->i_sar_num )
         {
             /* FIXME FIXME what about region->i_x/i_y ? */
             scale.w = scale.w *



More information about the vlc-commits mailing list