[Mplayer-cvslog] CVS: main/libvo vo_x11.c,1.64,1.65

Michael Niedermayer michael at mplayer.dev.hu
Mon Feb 11 15:04:34 CET 2002


Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv25054

Modified Files:
	vo_x11.c 
Log Message:
minor rounding bugfix in the aspect stuff


Index: vo_x11.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_x11.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -r1.64 -r1.65
--- vo_x11.c	11 Feb 2002 13:45:26 -0000	1.64
+++ vo_x11.c	11 Feb 2002 14:04:31 -0000	1.65
@@ -480,7 +480,7 @@
     SwsContext *oldContext= swsContext;
     
     if(newAspect>aspect) newW= (newH*aspect + (1<<15))>>16;
-    else                 newH= (newW*(1<<16) + (1<<15)) /aspect;
+    else                 newH= ((newW<<16) + (aspect>>1)) /aspect;
 
     old_vo_dwidth=  vo_dwidth;
     old_vo_dheight= vo_dheight;




More information about the MPlayer-cvslog mailing list