1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Merge commit '26e8fa3b508eb047e85f4e923fc8e82a1aa656ba'

* commit '26e8fa3b508eb047e85f4e923fc8e82a1aa656ba':
  tiny_psnr: Use the correct abs() version

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
This commit is contained in:
Hendrik Leppkes 2015-09-29 15:44:28 +02:00
commit fc97b1f091

View File

@ -190,7 +190,7 @@ static int run_psnr(FILE *f[2], int len, int shift, int skip_bytes)
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;