From 002c347330145dda474baf2085e5aa17bc360eee Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 11 Feb 2002 14:04:31 +0000 Subject: [PATCH] minor rounding bugfix in the aspect stuff git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4663 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c index c420a61018..27ebd0ee4d 100644 --- a/libvo/vo_x11.c +++ b/libvo/vo_x11.c @@ -480,7 +480,7 @@ static uint32_t draw_slice( uint8_t *src[],int stride[],int w,int h,int x,int y 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;