tiny_psnr: Support large files
authorThomas Lee <ThomasLee969@users.noreply.github.com>
Fri, 29 Jan 2016 10:11:06 +0000 (18:11 +0800)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 9 Feb 2016 19:03:34 +0000 (20:03 +0100)
commit7a00653be6b13131ce1b2cdeca696429f57caaf8
tree6a2bfbc750ef42beb541d27d10582121db43a0b9
parent99214d42a902c8392d7887c08fdc5dc1fc2475ae
tiny_psnr: Support large files

If an input file is bigger than 2GB (assume sizeof(int) == 4)),
size0/size1 will overflow, making stddev and PSNR invalid.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
tests/tiny_psnr.c