Merge commit '26e8fa3b508eb047e85f4e923fc8e82a1aa656ba'
authorHendrik Leppkes <h.leppkes@gmail.com>
Tue, 29 Sep 2015 13:44:28 +0000 (15:44 +0200)
committerHendrik Leppkes <h.leppkes@gmail.com>
Tue, 29 Sep 2015 13:44:28 +0000 (15:44 +0200)
* commit '26e8fa3b508eb047e85f4e923fc8e82a1aa656ba':
  tiny_psnr: Use the correct abs() version

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
tests/tiny_psnr.c

index 5f791c1..338845e 100644 (file)
@@ -190,7 +190,7 @@ static int run_psnr(FILE *f[2], int len, int shift, int skip_bytes)
                     b = buf[1][j];
                 }
                 sse += (a - b) * (a - b);
-                dist = abs(a - b);
+                dist = llabs(a - b);
                 if (dist > maxdist)
                     maxdist = dist;
                 break;