Mercurial > libavcodec.hg
comparison snow.c @ 4407:15688bdfe1b5 libavcodec
Brings down the number of snow.c warnings from 33 to 27 by putting parentheses
around + or - inside shift.
author | takis |
---|---|
date | Thu, 25 Jan 2007 09:43:52 +0000 |
parents | 5f887a3c7281 |
children | c3be13eac2d6 |
comparison
equal
deleted
inserted
replaced
4406:548b2c0a2a51 | 4407:15688bdfe1b5 |
---|---|
1963 if(s->ref_frames == 1){ | 1963 if(s->ref_frames == 1){ |
1964 *mx = mid_pred(left->mx, top->mx, tr->mx); | 1964 *mx = mid_pred(left->mx, top->mx, tr->mx); |
1965 *my = mid_pred(left->my, top->my, tr->my); | 1965 *my = mid_pred(left->my, top->my, tr->my); |
1966 }else{ | 1966 }else{ |
1967 const int *scale = scale_mv_ref[ref]; | 1967 const int *scale = scale_mv_ref[ref]; |
1968 *mx = mid_pred(left->mx * scale[left->ref] + 128 >>8, | 1968 *mx = mid_pred((left->mx * scale[left->ref] + 128) >>8, |
1969 top ->mx * scale[top ->ref] + 128 >>8, | 1969 (top ->mx * scale[top ->ref] + 128) >>8, |
1970 tr ->mx * scale[tr ->ref] + 128 >>8); | 1970 (tr ->mx * scale[tr ->ref] + 128) >>8); |
1971 *my = mid_pred(left->my * scale[left->ref] + 128 >>8, | 1971 *my = mid_pred((left->my * scale[left->ref] + 128) >>8, |
1972 top ->my * scale[top ->ref] + 128 >>8, | 1972 (top ->my * scale[top ->ref] + 128) >>8, |
1973 tr ->my * scale[tr ->ref] + 128 >>8); | 1973 (tr ->my * scale[tr ->ref] + 128) >>8); |
1974 } | 1974 } |
1975 } | 1975 } |
1976 | 1976 |
1977 //FIXME copy&paste | 1977 //FIXME copy&paste |
1978 #define P_LEFT P[1] | 1978 #define P_LEFT P[1] |