mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 06:03:45 +01:00
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:
parent
5619f4c25e
commit
002c347330
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user