minor rounding bugfix in the aspect stuff

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4663 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2002-02-11 14:04:31 +00:00
parent 5619f4c25e
commit 002c347330
1 changed files with 1 additions and 1 deletions

View File

@ -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;