Mercurial > libavcodec.hg
diff flacenc.c @ 4001:34fdffe98bd0 libavcodec
Rename ABS macro to FFABS.
author | diego |
---|---|
date | Wed, 11 Oct 2006 23:17:58 +0000 |
parents | c8c591fe26f8 |
children | 3118e8afb8a5 |
line wrap: on
line diff
--- a/flacenc.c Wed Oct 11 21:34:15 2006 +0000 +++ b/flacenc.c Wed Oct 11 23:17:58 2006 +0000 @@ -1032,10 +1032,10 @@ for(i=2; i<n; i++) { lt = left_ch[i] - 2*left_ch[i-1] + left_ch[i-2]; rt = right_ch[i] - 2*right_ch[i-1] + right_ch[i-2]; - sum[2] += ABS((lt + rt) >> 1); - sum[3] += ABS(lt - rt); - sum[0] += ABS(lt); - sum[1] += ABS(rt); + sum[2] += FFABS((lt + rt) >> 1); + sum[3] += FFABS(lt - rt); + sum[0] += FFABS(lt); + sum[1] += FFABS(rt); } /* estimate bit counts */ for(i=0; i<4; i++) {