changeset 4662:90cf53f47ab7

minor rounding bugfix in the aspect stuff
author michael
date Mon, 11 Feb 2002 14:04:31 +0000
parents 4df2400b0527
children b89a0b928fd0
files libvo/vo_x11.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_x11.c	Mon Feb 11 13:45:26 2002 +0000
+++ b/libvo/vo_x11.c	Mon Feb 11 14:04:31 2002 +0000
@@ -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;