summaryrefslogtreecommitdiff
path: root/libavcodec/snow.c
diff options
context:
space:
mode:
authorPanagiotis Issaris <takis.issaris@uhasselt.be>2007-01-25 09:43:52 +0000
committerPanagiotis Issaris <takis.issaris@uhasselt.be>2007-01-25 09:43:52 +0000
commit6884c36c42e88cd901124c54510602c148e1e26a (patch)
treea6dbce909a1d61a59891360e1d71567c60109d81 /libavcodec/snow.c
parent1541946878c92d1802e96e0d22d298b60905fc88 (diff)
Brings down the number of snow.c warnings from 33 to 27 by putting parentheses
around + or - inside shift. Originally committed as revision 7704 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/snow.c')
-rw-r--r--libavcodec/snow.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/snow.c b/libavcodec/snow.c
index 10be92d62b..a9f70f67ec 100644
--- a/libavcodec/snow.c
+++ b/libavcodec/snow.c
@@ -1965,12 +1965,12 @@ static inline void pred_mv(SnowContext *s, int *mx, int *my, int ref,
*my = mid_pred(left->my, top->my, tr->my);
}else{
const int *scale = scale_mv_ref[ref];
- *mx = mid_pred(left->mx * scale[left->ref] + 128 >>8,
- top ->mx * scale[top ->ref] + 128 >>8,
- tr ->mx * scale[tr ->ref] + 128 >>8);
- *my = mid_pred(left->my * scale[left->ref] + 128 >>8,
- top ->my * scale[top ->ref] + 128 >>8,
- tr ->my * scale[tr ->ref] + 128 >>8);
+ *mx = mid_pred((left->mx * scale[left->ref] + 128) >>8,
+ (top ->mx * scale[top ->ref] + 128) >>8,
+ (tr ->mx * scale[tr ->ref] + 128) >>8);
+ *my = mid_pred((left->my * scale[left->ref] + 128) >>8,
+ (top ->my * scale[top ->ref] + 128) >>8,
+ (tr ->my * scale[tr ->ref] + 128) >>8);
}
}