diff --git a/tests/tiny_psnr.c b/tests/tiny_psnr.c index 5f791c168b..338845e7a0 100644 --- a/tests/tiny_psnr.c +++ b/tests/tiny_psnr.c @@ -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;