diff options
author | Loren Merritt <lorenm@u.washington.edu> | 2008-02-26 07:35:56 +0000 |
---|---|---|
committer | Loren Merritt <lorenm@u.washington.edu> | 2008-02-26 07:35:56 +0000 |
commit | 00829b9bc103646a79614e15d15e0d2a0e0c6868 (patch) | |
tree | 0b2d3bfc383f63e5a3e6354c96316e0c305c1625 /libavcodec | |
parent | 97d1d009e21f1a8ed33f767c31f02ee7d7524e9c (diff) | |
download | ffmpeg-streaming-00829b9bc103646a79614e15d15e0d2a0e0c6868.zip ffmpeg-streaming-00829b9bc103646a79614e15d15e0d2a0e0c6868.tar.gz |
simplify
Originally committed as revision 12224 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/pngenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c index 10ed5af..703371d 100644 --- a/libavcodec/pngenc.c +++ b/libavcodec/pngenc.c @@ -158,7 +158,7 @@ static uint8_t *png_choose_filter(PNGEncContext *s, uint8_t *dst, buf1[0] = pred; cost = 0; for(i=0; i<=size; i++) - cost += abs(0x80 - (buf1[i] ^ 0x80)); + cost += abs((int8_t)buf1[i]); if(cost < bcost) { bcost = cost; FFSWAP(uint8_t*, buf1, buf2); |