[MPlayer-cvslog] r24959 - trunk/libvo/vo_directfb2.c

diego subversion at mplayerhq.hu
Sat Nov 3 21:25:00 CET 2007


Author: diego
Date: Sat Nov  3 21:25:00 2007
New Revision: 24959

Log:
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


Modified:
   trunk/libvo/vo_directfb2.c

Modified: trunk/libvo/vo_directfb2.c
==============================================================================
--- trunk/libvo/vo_directfb2.c	(original)
+++ trunk/libvo/vo_directfb2.c	Sat Nov  3 21:25:00 2007
@@ -1186,8 +1186,8 @@ static uint32_t get_image(mp_image_t *mp
        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);
 	    }		   



More information about the MPlayer-cvslog mailing list