summaryrefslogtreecommitdiffstats
path: root/libvo/vo_x11.c
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-11 14:04:31 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-11 14:04:31 +0000
commit002c347330145dda474baf2085e5aa17bc360eee (patch)
tree3e892ebf80a780f06772722f4a029e48d3ae58a4 /libvo/vo_x11.c
parent5619f4c25eb2f924b1c89be27f2f6691df712af7 (diff)
downloadmpv-002c347330145dda474baf2085e5aa17bc360eee.tar.bz2
mpv-002c347330145dda474baf2085e5aa17bc360eee.tar.xz
minor rounding bugfix in the aspect stuff
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4663 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_x11.c')
-rw-r--r--libvo/vo_x11.c2
1 files changed, 1 insertions, 1 deletions
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;