Commit 4b7de6ab authored by lorenm's avatar lorenm

simplify


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12224 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 55ceb1bc
...@@ -158,7 +158,7 @@ static uint8_t *png_choose_filter(PNGEncContext *s, uint8_t *dst, ...@@ -158,7 +158,7 @@ static uint8_t *png_choose_filter(PNGEncContext *s, uint8_t *dst,
buf1[0] = pred; buf1[0] = pred;
cost = 0; cost = 0;
for(i=0; i<=size; i++) for(i=0; i<=size; i++)
cost += abs(0x80 - (buf1[i] ^ 0x80)); cost += abs((int8_t)buf1[i]);
if(cost < bcost) { if(cost < bcost) {
bcost = cost; bcost = cost;
FFSWAP(uint8_t*, buf1, buf2); FFSWAP(uint8_t*, buf1, buf2);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment