tiny_psnr: Use the correct abs() version

This commit is contained in:
Vittorio Giovara 2015-09-22 13:56:48 +02:00
parent c9943f00cf
commit 26e8fa3b50
1 changed files with 1 additions and 1 deletions

View File

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