summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorrathann <rathann@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-10 20:01:54 +0000
committerrathann <rathann@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-10 20:01:54 +0000
commitd6f4e11f1cc4d1e8205981758a1ae5cf8f283e75 (patch)
tree95f8f28b993b2937ebe1d81b1353697f2dd49494 /libmpcodecs
parent1e9d1538b97a1fac2a9c3a76d3166e33e2b3a664 (diff)
downloadmpv-d6f4e11f1cc4d1e8205981758a1ae5cf8f283e75.tar.bz2
mpv-d6f4e11f1cc4d1e8205981758a1ae5cf8f283e75.tar.xz
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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15112 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/pullup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpcodecs/pullup.c b/libmpcodecs/pullup.c
index ed4034dcd6..0c00726442 100644
--- a/libmpcodecs/pullup.c
+++ b/libmpcodecs/pullup.c
@@ -678,8 +678,8 @@ void pullup_init_context(struct pullup_context *c)
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;