mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 18:32:22 +00:00
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
This commit is contained in:
parent
1541946878
commit
6884c36c42
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user