diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-03 20:25:00 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-03 20:25:00 +0000 |
commit | 0e4b5d10db1b8939437156eb5908cc96c8931e53 (patch) | |
tree | 9a3f018acb805de571efe5365b990cf9f5cf2303 | |
parent | 45dded292c438d81ead19d3331a2a6e74ceeaf58 (diff) |
Add some parentheses to fix the following warnings:
vo_directfb2.c:1189: warning: suggest parentheses around + or - inside shift
vo_directfb2.c:1190: warning: suggest parentheses around + or - inside shift
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24959 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/vo_directfb2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libvo/vo_directfb2.c b/libvo/vo_directfb2.c index 14e4569fb2..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); } |