[MPlayer-cvslog] CVS: main/libmpcodecs pullup.c,1.25,1.26

Dominik Mierzejewski CVS syncmail at mplayerhq.hu
Sun Apr 10 22:01:57 CEST 2005


CVS change done by Dominik Mierzejewski CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv5273

Modified Files:
	pullup.c 
Log Message:
silence gcc warning:
pullup.c:681: warning: suggest parentheses around + or - inside shift
pullup.c:682: warning: suggest parentheses around + or - inside shift
approved by Rich


Index: pullup.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/pullup.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- pullup.c	20 Mar 2005 20:37:44 -0000	1.25
+++ pullup.c	10 Apr 2005 20:01:54 -0000	1.26
@@ -678,8 +678,8 @@
 	if (c->nbuffers < 10) c->nbuffers = 10;
 	c->buffers = calloc(c->nbuffers, sizeof (struct pullup_buffer));
 
-	c->metric_w = (c->w[mp] - (c->junk_left + c->junk_right << 3)) >> 3;
-	c->metric_h = (c->h[mp] - (c->junk_top + c->junk_bottom << 1)) >> 3;
+	c->metric_w = (c->w[mp] - ((c->junk_left + c->junk_right) << 3)) >> 3;
+	c->metric_h = (c->h[mp] - ((c->junk_top + c->junk_bottom) << 1)) >> 3;
 	c->metric_offset = c->junk_left*c->bpp[mp] + (c->junk_top<<1)*c->stride[mp];
 	c->metric_len = c->metric_w * c->metric_h;
 	




More information about the MPlayer-cvslog mailing list