summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-04 23:39:05 +0000
committeriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-04 23:39:05 +0000
commit1479f405f6586bbbc83969a5ac12b95c663b3df6 (patch)
treec568d3ee50a144bd849b1bffe3ef5b10df70b31a
parent3d6a73e3e545d5468af34704d600a04c99074382 (diff)
downloadmpv-1479f405f6586bbbc83969a5ac12b95c663b3df6.tar.bz2
mpv-1479f405f6586bbbc83969a5ac12b95c663b3df6.tar.xz
10l Diego, revert commit 24966.
We do not have policy of restoring bugs when bug is fixed by accident. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24967 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libvo/vo_directfb2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvo/vo_directfb2.c b/libvo/vo_directfb2.c
index df47b3b313..45ce526480 100644
--- a/libvo/vo_directfb2.c
+++ b/libvo/vo_directfb2.c
@@ -1186,8 +1186,8 @@ static uint32_t get_image(mp_image_t *mpi)
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);
}