# HG changeset patch # User diego # Date 1194183667 0 # Node ID 328a5d99203eeabab9a01d863e5efff5a6b1b3ef # Parent bab7664099972828980b664cba4f45b46f7a1eec Fix previous incorrect commit, +/- has higher precedence than shifts. diff -r bab766409997 -r 328a5d99203e libvo/vo_directfb2.c --- a/libvo/vo_directfb2.c Sun Nov 04 12:34:46 2007 +0000 +++ b/libvo/vo_directfb2.c Sun Nov 04 13:41:07 2007 +0000 @@ -1186,8 +1186,8 @@ if (!frame) { if(mpi->flags&MP_IMGFLAG_PLANAR){ mpi->planes[0]= dst + yoffset * pitch + xoffset; - mpi->planes[1]+= ((yoffset * pitch) >> 2) + (xoffset >> 1); - mpi->planes[2]+= ((yoffset * pitch) >> 2) + (xoffset >> 1); + mpi->planes[1]+= (yoffset * pitch) >> (2 + xoffset) >> 1; + mpi->planes[2]+= (yoffset * pitch) >> (2 + xoffset) >> 1; } else { mpi->planes[0]=dst + yoffset * pitch + xoffset * (mpi->bpp >> 3); }