tiny_psnr: Use the correct abs() version
authorVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 22 Sep 2015 11:56:48 +0000 (13:56 +0200)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 29 Sep 2015 12:33:01 +0000 (14:33 +0200)
tests/tiny_psnr.c

index 66eaf82..d06baf6 100644 (file)
@@ -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;