Commit 26e8fa3b authored by Vittorio Giovara's avatar Vittorio Giovara

tiny_psnr: Use the correct abs() version

parent c9943f00
......@@ -208,7 +208,7 @@ int main(int argc, char *argv[])
b = buf[1][j];
}
sse += (a - b) * (a - b);
dist = abs(a - b);
dist = llabs(a - b);
if (dist > maxdist)
maxdist = dist;
break;
......
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