# HG changeset patch # User iive # Date 1194219545 0 # Node ID 6a2d9f2a19af316895ae822272577ab067097972 # Parent 328a5d99203eeabab9a01d863e5efff5a6b1b3ef 10l Diego, revert commit 24966. We do not have policy of restoring bugs when bug is fixed by accident. diff -r 328a5d99203e -r 6a2d9f2a19af libvo/vo_directfb2.c --- a/libvo/vo_directfb2.c Sun Nov 04 13:41:07 2007 +0000 +++ b/libvo/vo_directfb2.c Sun Nov 04 23:39:05 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); }