changeset 24931:a2fc6f4a03c6

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
author diego
date Sat, 03 Nov 2007 20:25:00 +0000
parents 17fe71259132
children 230f1e6a7c2d
files libvo/vo_directfb2.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_directfb2.c	Sat Nov 03 19:14:16 2007 +0000
+++ b/libvo/vo_directfb2.c	Sat Nov 03 20:25:00 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);
 	    }