[Mplayer-cvslog] CVS: main/libmpcodecs vd_theora.c,1.3,1.4

Moritz Bunkus CVS syncmail at mplayerhq.hu
Tue Jul 6 11:39:35 CEST 2004


CVS change done by Moritz Bunkus CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv25055

Modified Files:
	vd_theora.c 
Log Message:
Use aspect ratio from Theora context. Patch by j at v2v dot cc

Index: vd_theora.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_theora.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- vd_theora.c	18 Aug 2003 13:13:41 -0000	1.3
+++ vd_theora.c	6 Jul 2004 09:39:32 -0000	1.4
@@ -102,6 +102,12 @@
        return 0;
     }
 
+    if(sh->aspect==0.0 && context->inf.aspect_denominator!=0)
+    {
+       sh->aspect = (float)(context->inf.aspect_numerator * context->inf.width)/
+          (context->inf.aspect_denominator * context->inf.height);
+    }
+    
     mp_msg(MSGT_DECVIDEO,MSGL_V,"INFO: Theora video init ok!\n");
 
     return mpcodecs_config_vo (sh,sh->disp_w,sh->disp_h,IMGFMT_YV12);




More information about the MPlayer-cvslog mailing list