Mercurial > libavcodec.hg
diff dv.c @ 4001:34fdffe98bd0 libavcodec
Rename ABS macro to FFABS.
| author | diego |
|---|---|
| date | Wed, 11 Oct 2006 23:17:58 +0000 |
| parents | c8c591fe26f8 |
| children | d6f83e2f8804 |
line wrap: on
line diff
--- a/dv.c Wed Oct 11 21:34:15 2006 +0000 +++ b/dv.c Wed Oct 11 23:17:58 2006 +0000 @@ -705,7 +705,7 @@ /* weigh it and and shift down into range, adding for rounding */ /* the extra division by a factor of 2^4 reverses the 8x expansion of the DCT AND the 2x doubling of the weights */ - level = (ABS(level) * weight[i] + (1<<(dv_weight_bits+3))) >> (dv_weight_bits+4); + level = (FFABS(level) * weight[i] + (1<<(dv_weight_bits+3))) >> (dv_weight_bits+4); bi->mb[i] = level; if(level>max) max= level; bi->bit_size[area] += dv_rl2vlc_size(i - prev - 1, level);
